Displaying 2 results from an estimated 2 matches for "542f1ed".
Did you mean:
542f1ed3d
2017 Jan 26
1
[PATCH] Use srandom (time (NULL) + getpid ()) throughout.
...(int argc, char *argv[])
textdomain (PACKAGE);
/* We use random(3) in edit.c. */
- srandom (time (NULL));
+ srandom (time (NULL) + getpid ());
parse_config ();
diff --git a/tests/mount-local/test-parallel-mount-local.c b/tests/mount-local/test-parallel-mount-local.c
index 3e5d95c..542f1ed 100644
--- a/tests/mount-local/test-parallel-mount-local.c
+++ b/tests/mount-local/test-parallel-mount-local.c
@@ -85,7 +85,7 @@ main (int argc, char *argv[])
int r, errors = 0;
void *status;
- srandom (time (NULL));
+ srandom (time (NULL) + getpid ());
/* If the --test flag is given...
2017 Jan 26
2
[PATCH v2 0/2] Fix srandom issues.
A better way to solve this I think.
Rich.