aboutsummaryrefslogtreecommitdiff
path: root/jim.c
diff options
context:
space:
mode:
Diffstat (limited to 'jim.c')
-rw-r--r--jim.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/jim.c b/jim.c
index 526522c..483daf1 100644
--- a/jim.c
+++ b/jim.c
@@ -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);
}