Skip to content

Commit ade935f

Browse files
committed
libutil: fix incorrect usage of rand()
Signed-off-by: Joshua Wise <[email protected]>
1 parent 6765e2b commit ade935f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libutil/platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ WEAK NORETURN util_assertion_failed(const char *filename, int line) {
4545
}
4646

4747
WEAK uint32_t rand32(void) {
48-
return ((uint32_t)rand() << 1) + (uint32_t)rand;
48+
return ((uint32_t)rand() << 1) + (uint32_t)rand();
4949
}

0 commit comments

Comments
 (0)