Hi @jedisct1! What is the idea of randombytes_uniform returning 0 when upper_limit < 2, instead of causing some sort of error? Was a bit surprised, so do you want a PR for documentation? Relevant lineshttps://github.com/jedisct1/libsodium/blob/master/src/libsodium/randombytes/randombytes.c#L136-L138 …
-
-
Replying to @emilbayes
This is consistent with the C function arc4random_uniform(3) https://man.openbsd.org/arc4random.9
1 reply 0 retweets 0 likes -
Replying to @emilbayes
But a PR to clarify this in the documentation wouldn’t be a bad thing :)
1:01 PM - 14 Feb 2018
from Paris
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.