all repos — captcha @ f14d4a9979825b6bc693f15cc3fc97b26145562b

Go package captcha implements generation and verification of image and audio CAPTCHAs.

random: seed with Nanoseconds.
Dmitry Chestnykh dmitry@codingrobots.com
Fri, 29 Apr 2011 04:51:24 +0200
commit

f14d4a9979825b6bc693f15cc3fc97b26145562b

parent

c087adeb6aa31902853593b5fda6561e4da9c470

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M random.gorandom.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