diff --git a/src/ByteAether.Ulid/Ulid.New.cs b/src/ByteAether.Ulid/Ulid.New.cs index fce2f0b..3daad1d 100644 --- a/src/ByteAether.Ulid/Ulid.New.cs +++ b/src/ByteAether.Ulid/Ulid.New.cs @@ -251,9 +251,9 @@ private static void FillRandom(ref byte ulidBytesRef, long timestamp, Generation // Generate a new random to the last ULID options.InitialRandomSource.GetBytes( #if NETCOREAPP - MemoryMarshal.CreateSpan(ref lastRandomRef, _ulidSize) + MemoryMarshal.CreateSpan(ref lastRandomRef, _ulidSizeRandom) #else - Compatibility.MemoryMarshal.CreateSpan(ref lastRandomRef, _ulidSize) + Compatibility.MemoryMarshal.CreateSpan(ref lastRandomRef, _ulidSizeRandom) #endif ); }