Hacker News new | past | comments | ask | show | jobs | submit login
4-line random number generator in JS by Dan Kaminsky (pastebin.com)
2 points by oleganza on Aug 2, 2013 | hide | past | favorite | 1 comment



The idea here is to flip a coin based on how unpredictably interrupts happen. This is slow, but allows good distribution of bits (if launched on a real multitasking machine, not an accurate emulator). And for many bits it's going to be slow. (>1 ms per bit).

It was posted today, so it's early to say how strong this RNG is.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: