From d067a31ce6690b6fcf402a63d306ea7d55d422f3 Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Tue, 24 Sep 2024 20:15:10 +0200 Subject: [PATCH] Fix entropy --- lib/std/math/random/math.seeder.c3 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/std/math/random/math.seeder.c3 b/lib/std/math/random/math.seeder.c3 index acd5ffc1a..0900915bd 100644 --- a/lib/std/math/random/math.seeder.c3 +++ b/lib/std/math/random/math.seeder.c3 @@ -100,6 +100,11 @@ fn char[8 * 4] entropy() @if(env::WASM_NOLIBC) hash($$TIME), hash(&entropy), random_int, + hash($$TIME), + hash(&entropy), + random_int, + hash($$TIME), + hash(&entropy), }; return bitcast(entropy_data, char[8 * 4]); } \ No newline at end of file