Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Tepix
· 13y ago · 0 comments
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!
Comments
[–]
Robin_Message
13y ago
It'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
OP
13y ago
Yep. Just awful...