diff options
Diffstat (limited to 'jim.c')
-rw-r--r-- | jim.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -9294,11 +9294,10 @@ static void JimPrngInit(Jim_Interp *interp) int i; /* XXX: Move off stack */ unsigned int seed[256]; - unsigned rseed; /* uninitialized! */ interp->prngState = Jim_Alloc(sizeof(Jim_PrngState)); for (i = 0; i < 256; i++) - seed[i] = (rand_r(&rseed) ^ time(NULL) ^ clock()); + seed[i] = (rand() ^ time(NULL) ^ clock()); JimPrngSeed(interp, (unsigned char *)seed, sizeof(int) * 256); } |