News for hackers. Stuff that matters.
Re:Anatomy of a pseudorandom number generator – visualising ... by axman6 on Tuesday July 09, 2013 @03:22AM (#6011545)
The issue isn't the potentially infinite loop, it's the fact it creates an uneven distribution of values, giving 0 a 1/250 greater chance of being selected, and thus makes the results of the PRNG more predictable. The article makes this pretty clear...
Re:Anatomy of a pseudorandom number generator – visualising ... by billforsternz on Tuesday July 09, 2013 @04:43PM (#6015324)
What part of "ignoring the off by one error" in the parent don't you get ? Edit: Sorry, unnecessarily snarky, and I could have made my (now uneditable) post clearer by saying ">=250" rather than ">250".
Re:Anatomy of a pseudorandom number generator – visualising ... by mpyne on Tuesday July 09, 2013 @08:29AM (#6012285)
The article also makes clear that it's a standard fencepost error. Freakishly poor crypto, but not bush-league programming.