From e1fd00de9b03c430dc81c96d68b7bb83e6abe1ee Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 22 Jun 2018 08:41:01 +0200 Subject: [PATCH] Fix hash: use Write, not Sum --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index dfc7e17..9d700d4 100644 --- a/client.go +++ b/client.go @@ -52,7 +52,7 @@ func New(options ...func(*Client) error) (*Client, error) { // Hence, seed a random number generator with the current time and hardware // address. h := fnv.New64() - h.Sum(c.hardwareAddr) + h.Write(c.hardwareAddr) seed := int64(h.Sum64()) + time.Now().Unix() rnd := rand.New(rand.NewSource(seed)) var rndMu sync.Mutex