12 lines
267 B
C++
12 lines
267 B
C++
|
#pragma once
|
||
|
|
||
|
struct WELLRand
|
||
|
{
|
||
|
AuUInt32 state[16];
|
||
|
int index;
|
||
|
Aurora::Threading::Primitives::SpinLock lock;
|
||
|
};
|
||
|
|
||
|
WELLRand WELL_SeedRand(AuUInt32 seed);
|
||
|
AuUInt32 WELL_NextLong(WELLRand* rand);
|
||
|
void WELL_NextBytes(WELLRand *rand, void *in, AuUInt32 length);
|