s/random/rand/g
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I'm partial to OpenBSD's decision to make rand() the same as arc4random() and srand() a no-op. If you need deterministic random numbers, just write your own LCG, it's like 5 lines of code.
-
If you need deterministic sequences, OpenBSD has srand_deterministic(). As long as no confusion is possible, this is totally fine.
- 1 more reply
New conversation -
-
-
I always ask myself why not have a CPRNG as the default and a deterministic as the “harder to use” RNG.
-
Especially since a CSPRG is fast enough for most applications.
- 1 more reply
New conversation -
-
-
In what way are the interfaces the same?
-
What does the following line do: “http://rand.Read (k[:])”? Is it secure or completely insecure? There’s no way to tell. It depends on the imports.
- 1 more reply
New conversation -
-
-
if you want some randomness, iterate over a map :'D
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.