aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/stdlib.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-05-06 22:27:59 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-05-06 22:27:59 -0400
commit46555c558870e8b96f1ce361d74fc404ca13c471 (patch)
treee0b01a6a2b5a99754bbc1ca7131a37a8badc9d54 /src/stdlib/stdlib.c
parent817adbf22592955244aecad435ce0555707dba1a (diff)
Check return values
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;