mirror of https://github.com/google/pebble
libutil: fix incorrect usage of rand()
Signed-off-by: Joshua Wise <joshua@joshuawise.com>
This commit is contained in:
parent
4051c5bb97
commit
8b35bab04e
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue