Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ByteAether.Ulid/Ulid.New.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}
Expand Down