aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/stdlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdlib/stdlib.c')
-rw-r--r--src/stdlib/stdlib.c2
1 files changed, 1 insertions, 1 deletions
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;