Skip to content

Commit

Permalink
Fix hash: use Write, not Sum
Browse files Browse the repository at this point in the history
  • Loading branch information
stapelberg committed Jun 22, 2018
1 parent e612998 commit e1fd00d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1fd00d

Please sign in to comment.