From 4b9dc6ddafcc130f1df97fb728ab82e94607249f Mon Sep 17 00:00:00 2001 From: gengbing Date: Wed, 27 Jul 2022 23:13:47 +0800 Subject: [PATCH] v1: lower the required go version to 1.12 --- doublejump_test.go | 2 +- go.mod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doublejump_test.go b/doublejump_test.go index e3c8da7..773dd53 100644 --- a/doublejump_test.go +++ b/doublejump_test.go @@ -15,7 +15,7 @@ import ( var debugMode = flag.Bool("debugMode", false, "enable the debug mode") func init() { - rand.Seed(time.Now().UnixMilli()) + rand.Seed(time.Now().UnixNano() / 1000) } func invariant(h *Hash, t *testing.T) { diff --git a/go.mod b/go.mod index d5b41df..afbf0f3 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module github.com/edwingeng/doublejump require github.com/dgryski/go-jump v0.0.0-20170409065014-e1f439676b57 -go 1.13 +go 1.12