random: seed with Nanoseconds.
Dmitry Chestnykh dmitry@codingrobots.com
Fri, 29 Apr 2011 04:51:24 +0200
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
random.go
→
random.go
@@ -14,7 +14,7 @@ // idChars are characters allowed in captcha id.
var idChars = []byte("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") func init() { - rand.Seed(time.Seconds()) + rand.Seed(time.Nanoseconds()) } // RandomDigits returns a byte slice of the given length containing