Home
last modified time | relevance | path

Searched refs:rndState (Results 1 – 1 of 1) sorted by relevance

/external/honggfuzz/libhfcommon/
Dutil.c88 static __thread uint64_t rndState[2]; variable
95 if (files_readFromFd(fd, (uint8_t*)rndState, sizeof(rndState)) != sizeof(rndState)) { in util_rndInitThread()
96 PLOG_F("Couldn't read '%zu' bytes from /dev/urandom", sizeof(rndState)); in util_rndInitThread()
109 const uint64_t s0 = rndState[0]; in util_InternalRnd64()
110 uint64_t s1 = rndState[1]; in util_InternalRnd64()
113 rndState[0] = util_RotL(s0, 55) ^ s1 ^ (s1 << 14); in util_InternalRnd64()
114 rndState[1] = util_RotL(s1, 36); in util_InternalRnd64()