You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> What does 'go version' print?
go version go1.3.3 windows/amd64
> What steps reproduce the problem?
http://play.golang.org/p/-JoqAkDZ16
> What happened?
First three numbers are same, fourth is different from three previous.
> What should have happened instead?
All numbers should (not always, but often) be different.
> Please provide any additional information below.
I know that Go Playground has special environment, but while running this test on
Windows 8.1 x64, I get the same incorrect results. My co-worker have ran this on Gentoo
(go version 1.3 linux/amd64) and got different numbers. I've also tried this using
windows/386 version and got incorrect results.
The text was updated successfully, but these errors were encountered:
Windows have poor time granularity, thus the first three calls may seed the PRNG with
the same number. You need to use some other source of entropy or seed the PRNG only
once, if possible.
by kpashka:
The text was updated successfully, but these errors were encountered: