3 ms·
So, getRandomInteger() keeps fetching bytes and adding them as 0..255 values until it reaches the desired value? How silly is that? For a random number between
by Tepix 13y ago
So, getRandomInteger() keeps fetching bytes and adding them as 0..255 values until it reaches the desired value? How silly is that?
For a random number between 0 and 2147483648 it would require 8388608 random bytes.. omg!
- Robin_Message 13y agoIt's also going to return random numbers with a binomial distribution, which might be surprising since most generators are uniform. How is this "improved security"?
- Tepix 13y agoYep. Just awful...
- deleted 13y ago[deleted]