Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ XoshiroImpl()

unsafe System.Random.XoshiroImpl.XoshiroImpl ( )
inline

Definition at line 440 of file Random.cs.

441 {
442 ulong* ptr = stackalloc ulong[4];
443 do
444 {
445 Interop.GetRandomBytes((byte*)ptr, 32);
446 _s0 = *ptr;
447 _s1 = ptr[1];
448 _s2 = ptr[2];
449 _s3 = ptr[3];
450 }
451 while ((_s0 | _s1 | _s2 | _s3) == 0L);
452 }
static unsafe void GetRandomBytes(byte *buffer, int length)
Definition Interop.cs:1871

References System.Random.XoshiroImpl._s0, System.Random.XoshiroImpl._s1, System.Random.XoshiroImpl._s2, System.Random.XoshiroImpl._s3, Interop.GetRandomBytes(), and System.L.