From 6de2d68a700a137bbe55668e036c62280ece8bb5 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 1 Apr 2025 16:55:24 -0400 Subject: Moved RNG out of the compiler and into a standalone library --- src/stdlib/stdlib.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/stdlib/stdlib.c') diff --git a/src/stdlib/stdlib.c b/src/stdlib/stdlib.c index 2177397d..80c53b68 100644 --- a/src/stdlib/stdlib.c +++ b/src/stdlib/stdlib.c @@ -21,7 +21,6 @@ #include "metamethods.h" #include "nums.h" #include "paths.h" -#include "rng.h" #include "siphash.h" #include "stdlib.h" #include "tables.h" @@ -65,11 +64,6 @@ public void tomo_init(void) setlocale(LC_ALL, ""); getrandom(TOMO_HASH_KEY, sizeof(TOMO_HASH_KEY), 0); - uint8_t *random_bytes[40] = {}; - getrandom(random_bytes, sizeof(random_bytes), 0); - Array_t rng_seed = {.length=sizeof(random_bytes), .data=random_bytes, .stride=1, .atomic=1}; - RNG$set_seed(default_rng, rng_seed); - struct sigaction sigact; sigact.sa_sigaction = signal_handler; sigemptyset(&sigact.sa_mask); -- cgit v1.2.3