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

That's still just a linear congruential PRNG with state sizeof(unsigned int). LCG is simple and has well-known flaws.


No it is not an LCG. When you distribute the terms there is a -4x_n^2. Therefore it is non-linear.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: