2 ms·
In Go, am I supposed to seed the rand manually? http://i.imgur.com/Rw5afx9.png http://i.imgur.com/Rw5afx9.png
by egeozcan 13y ago
In Go, am I supposed to seed the rand manually? http://i.imgur.com/Rw5afx9.png http://i.imgur.com/Rw5afx9.png
- shakesbeard 13y agoYes. The default seed is 1. You can set your own using something like this: rand.Seed(time.Now().UnixNano())
- f2f 13y agoor, better yet, use crypto/rand to seed it.