Browse Source

random: seed with Nanoseconds.

Dmitry Chestnykh 15 years ago
parent
commit
f14d4a9979
1 changed files with 1 additions and 1 deletions
  1. 1 1
      random.go

+ 1 - 1
random.go

@@ -14,7 +14,7 @@ const idLen = 20
 var idChars = []byte("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")
 
 func init() {
-	rand.Seed(time.Seconds())
+	rand.Seed(time.Nanoseconds())
 }
 
 // RandomDigits returns a byte slice of the given length containing