Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bregma
on Sept 14, 2020
|
parent
|
context
|
favorite
| on:
How Do Computers Generate Random Numbers?
That's still just a linear congruential PRNG with state sizeof(unsigned int). LCG is simple and has well-known flaws.
IIAOPSW
on Sept 14, 2020
[–]
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: