diff options
Diffstat (limited to 'string/strfry.c')
-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 6306f06..8b293af 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; } |