From 46555c558870e8b96f1ce361d74fc404ca13c471 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 6 May 2025 22:27:59 -0400 Subject: Check return values --- src/stdlib/stdlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stdlib/stdlib.c') diff --git a/src/stdlib/stdlib.c b/src/stdlib/stdlib.c index 54c7827f..6a855c66 100644 --- a/src/stdlib/stdlib.c +++ b/src/stdlib/stdlib.c @@ -65,7 +65,7 @@ public void tomo_init(void) USE_COLOR = false; setlocale(LC_ALL, ""); - getrandom(TOMO_HASH_KEY, sizeof(TOMO_HASH_KEY), 0); + assert(getrandom(TOMO_HASH_KEY, sizeof(TOMO_HASH_KEY), 0) == sizeof(TOMO_HASH_KEY)); struct sigaction sigact; sigact.sa_sigaction = signal_handler; -- cgit v1.2.3