From 83e19480fc42a432f1498864c9d4eabed1f6a54f Mon Sep 17 00:00:00 2001 From: Bojan Endrovski Date: Fri, 10 Mar 2023 09:44:59 +0100 Subject: [PATCH] Randomer Random objects with default seeding --- src/optional/wren_opt_random.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/optional/wren_opt_random.c b/src/optional/wren_opt_random.c index de6344588..f74972cba 100644 --- a/src/optional/wren_opt_random.c +++ b/src/optional/wren_opt_random.c @@ -47,7 +47,7 @@ static void randomSeed0(WrenVM* vm) { Well512* well = (Well512*)wrenGetSlotForeign(vm, 0); - srand((uint32_t)time(NULL)); + srand((uint32_t)time(NULL) + (uint32_t)clock()); for (int i = 0; i < 16; i++) { well->state[i] = rand();