X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=pysvrt.git;a=blobdiff_plain;f=svrt.c;h=d1341b62b724db7d89d83ec54e205c787cd5e9f3;hp=102084b6f8c565ed2f175cfe5548223f7bf12b20;hb=7e8301516e75c43d20c37b0392953aa7f9ca00e0;hpb=08ef6b7c332153cd72b7a225e27ee7af8882f313 diff --git a/svrt.c b/svrt.c index 102084b..d1341b6 100644 --- a/svrt.c +++ b/svrt.c @@ -86,6 +86,10 @@ THByteStorage *uncompress(THByteStorage *x) { return result; } +void seed(long s) { + srand48(s); +} + THByteTensor *generate_vignettes(long n_problem, THLongTensor *labels) { struct VignetteSet vs; long nb_vignettes;