That moment when you use Go math/rand (requires to be seeded, otherwise predictable) instead of crypto/rand, but then you test your own code and find it right away. Remember kids, don't mess it up.
-
-
-
Replying to @FiloSottile
Well Seed(1) is a little more predictable than Seed(epoch) but yes, you are right. The bottom line is to stay away from it for crypto operations ;). I find it too easy to make this mistake given that the invocation of http://rand.Read () is identical...
1 reply 0 retweets 0 likes -
Replying to @AndreaBarisani
I mean, you can reverse it from the outputs. And I'm unhappy about the API collision too.
1 reply 0 retweets 0 likes
Replying to @FiloSottile
Oh yeah, that’s pretty bad.
2:59 PM - 11 Jan 2018
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.