Different ULID was generated even if using Ulid.NewUlid(DateTimeOffset d, ReadOnlySpan<byte> r).
Environment
dotnet-sdk-3.0pre3
Ulid-0.1.0
Steps to reproduce
run following procedure
var d = DateTime.Parse("1970/1/1 00:00:00Z");
var r = new byte[10];
var first = Ulid.NewUlid(d, r);
var second = Ulid.NewUlid(d, r);
Console.WriteLine($"first={first.ToString()}, second={second.ToString()}");
Overview
Different ULID was generated even if using
Ulid.NewUlid(DateTimeOffset d, ReadOnlySpan<byte> r)
.Environment
Steps to reproduce
Expected
first and second is same value
Actual
first and second are different
Notes
Ulid.NewUlid(DateTimeOffset t, ReadOnlySpan<byte> r)
seems to ignorer
parameter https://github.com/Cysharp/Ulid/blob/e33f674b1d7c9298038c20fc2479d9b0b13d2a51/src/Ulid/Ulid.cs#L160-L164