Hacker News new | ask | show | jobs
by pclmulqdq 1412 days ago
For PRNGs like this, constants are often chosen by guess and check. This algorithm (an LCG) has a bit more theory, so these might not have been chosen that way, but the author of the code probably didn't have any insight either.