diff options
Diffstat (limited to 'string')
-rw-r--r-- | string/strfry.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/string/strfry.c b/string/strfry.c index 6306f06ae4..8b293af185 100644 --- a/string/strfry.c +++ b/string/strfry.c @@ -17,7 +17,7 @@ #include <string.h> #include <stdlib.h> -#include <time.h> +#include <random-bits.h> #include <unistd.h> char * @@ -30,7 +30,7 @@ strfry (char *string) { static char state[32]; rdata.state = NULL; - __initstate_r (time (NULL) ^ getpid (), + __initstate_r (random_bits (), state, sizeof (state), &rdata); init = 1; } |