Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The "use ASLR for random seed" trick in there is pretty cute, but I noticed it will just silently not work in non-ASLR settings, and in particular under Wasm.


Recent versions of Lua use this trick as well.


Is there any other way to generate entropy without an OS dependency?


timestamp counter?


Only works on x86.


As far as entropy generation goes other architectures have equivalents, albeit a few more instructions than just rdtsc


Not the end of the world though surely.




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

Search: