Beispiel #1
0
 public static XorShift64 GetXorShift64()
 {
     if (xorShift == null)
     {
         xorShift = CreateXorShift64();
     }
     return(xorShift);
 }
Beispiel #2
0
 internal Ulid(long timestampMilliseconds, XorShift64 random)
     : this()
 {
     // Get memory in stack and copy to ulid(Little->Big reverse order).
     ref var fisrtByte = ref Unsafe.As <long, byte>(ref timestampMilliseconds);