Home
last modified time | relevance | path

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

/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/
H A Dcommon.h93 template <typename T> inline void shuffle(T *A, u32 N, u32 *RandState) { in shuffle() argument
96 u32 State = *RandState; in shuffle()
99 *RandState = State; in shuffle()
H A Dprimary64.h81 Region->RandState = getRandomU32(&Seed); in init()
298 u32 RandState = 0; member
388 shuffle(ShuffleArray, NumberOfBlocks, &Region->RandState); in populateFreeList()
H A Dprimary32.h79 Sci->RandState = getRandomU32(&Seed); in init()
263 u32 RandState; in alignas() local
379 shuffle(ShuffleArray, NumberOfBlocks, &Sci->RandState); in populateFreeList()
/llvm-project-15.0.7/compiler-rt/lib/scudo/
H A Dscudo_tsd_shared.cpp72 u32 RandState = static_cast<u32>(TSD->getPrecedence()); in getTSDAndLockSlow() local
73 const u32 R = Rand(&RandState); in getTSDAndLockSlow()
/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/tests/
H A Drelease_test.cpp156 scudo::u32 RandState = 42; in testReleaseFreeMemoryToOS() local
168 InFreeRange = (scudo::getRandomU32(&RandState) & 1U) == 1; in testReleaseFreeMemoryToOS()
169 CurrentRangeEnd += (scudo::getRandomU32(&RandState) & 0x7f) + 1; in testReleaseFreeMemoryToOS()