diff --git a/uuid_test.go b/uuid_test.go index 3efc632..c1c6001 100644 --- a/uuid_test.go +++ b/uuid_test.go @@ -910,7 +910,12 @@ func TestVersion7MonotonicityStrict(t *testing.T) { timeNow = func() time.Time { return time.Date(2008, 8, 8, 8, 8, 8, 8, time.UTC) } + defer func() { + timeNow = time.Now + }() + SetRand(fakeRand{}) + defer SetRand(nil) length := 100000 // > 3906 u1 := Must(NewV7()).String()