Exemplo n.º 1
0
 public static XorShift64 GetXorShift64()
 {
     if (xorShift == null)
     {
         xorShift = CreateXorShift64();
     }
     return(xorShift);
 }
Exemplo n.º 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);