blob: 6643b79f1fc9dba9fcb291cd35b537c899ba9781 (
plain)
1
2
3
4
5
6
7
|
#include <stdint.h>
static uint32_t dm_random_uint32(void) {
static uint32_t current=UINT32_C(0xDEADBEEF);
current = ((uint64_t) current << 6) % UINT32_C(4294967291);
return current;
}
|