Skip to content

Commit 3a1258d

Browse files
committed
initialize the system PRNG with the parrot one
1 parent d5c0011 commit 3a1258d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ops/nqp_bigint.ops

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ inline op nqp_bigint_setup() :base_core {
149149
bigint_repr_id = REGISTER_DYNAMIC_REPR(interp,
150150
Parrot_str_new_constant(interp, "P6bigint"),
151151
P6bigint_initialize);
152-
srand(time(NULL));
152+
srand((unsigned int) Parrot_util_int_rand(0));
153153
}
154154
}
155155

0 commit comments

Comments
 (0)