12 lines
394 B
Plaintext
12 lines
394 B
Plaintext
--- generate_randfile.cpp.orig Tue Dec 9 20:36:30 2014
|
|
+++ generate_randfile.cpp Tue Dec 9 20:36:36 2014
|
|
@@ -41,7 +41,7 @@ int main(int argc, char **argv)
|
|
if(optind >= argc)
|
|
usage();
|
|
int count = atoi(argv[optind]);
|
|
- srand(seed);
|
|
+ srand_deterministic(seed);
|
|
fprintf(stderr, "Generating %d random numbers with seed %d.\n", count, seed);
|
|
for(int i = 0; i < count; i++)
|
|
{
|