libutil: fix incorrect usage of rand()

Signed-off-by: Joshua Wise <joshua@joshuawise.com>
This commit is contained in:
Joshua Wise 2025-07-28 03:47:09 -04:00 committed by Jinchang
parent 4051c5bb97
commit 8b35bab04e
1 changed files with 1 additions and 1 deletions

View File

@ -45,5 +45,5 @@ WEAK NORETURN util_assertion_failed(const char *filename, int line) {
} }
WEAK uint32_t rand32(void) { WEAK uint32_t rand32(void) {
return ((uint32_t)rand() << 1) + (uint32_t)rand; return ((uint32_t)rand() << 1) + (uint32_t)rand();
} }