Skip to content

Commit

Permalink
Merge pull request #27 from wadeholler/master
Browse files Browse the repository at this point in the history
update seed.go with UnixNano instead of Unix
  • Loading branch information
mildwonkey authored Jul 23, 2018
2 parents f2858bc + 0e2a09e commit 0e124a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion random/seed.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func NewRand(seed string) *rand.Rand {
crcTable := crc64.MakeTable(crc64.ISO)
seedInt = int64(crc64.Checksum([]byte(seed), crcTable))
} else {
seedInt = time.Now().Unix()
seedInt = time.Now().UnixNano()
}

randSource := rand.NewSource(seedInt)
Expand Down

0 comments on commit 0e124a6

Please sign in to comment.