2/19/2026 at 1:57:36 AM
I'm no statistician, but the part about halfway through that says not to use PRNGs for random assignment into bins seems wrong to me?Sure I can understand why for a research trial you might want just want to be totally safe and use a source of true randomness, but for all practical purposes a decent PRNG used for sorting balls into buckets is totally indistinguishable from true randomness is it not?
I was half expecting this to have been written a few decades ago when really bad PRNGs were in common usage, but the article seems to be timestamped 2025.
by p1necone
2/19/2026 at 3:06:15 AM
Plenty of previously well regarded PRNGs are distinguishable in quite surprising ways.Perhaps you could say otherwise for a CSPRNG.
by nullc
2/19/2026 at 8:36:36 AM
In PRNGs there is a compromise between speed and the quality of their statistical properties.So you must choose a PRNG wisely, depending on the intended purpose.
There are PRNGs good enough for any application, including those that use cryptographic mixing functions, but in many cases people prefer the fastest PRNGs.
The problems appear when the fastest PRNGs are used in applications for which they are not good enough, so the PRNG choice must be done carefully, whenever it is likely to matter.
With recent CPUs, the PRNG choice is much simpler than in the past. They can produce high quality random numbers by using AES at a rate only a few times lower than they can fill memory.
Because of this, the speed gap between the fastest PRNGs and good PRNGs has become much narrower than in the past. Therefore, if you choose a very good PRNG you do not lose much speed, so you can make this choice much more often.
Many kinds of non-cryptographic PRNGs have become obsolete, i.e. all those that are slower than the PRNGs using AES, SHA-2 or SHA-1, which use the dedicated hardware included in modern CPUs.
The non-cryptographic PRNGs that remain useful, due to superior speed, contain a linear congruential generator or a Galois field counter, which guarantee maximum period and allow sequence jumps and the ability to generate multiple independent random streams, together with some non-linear mixing function for the output, which improves the statistical properties.
by adrian_b
2/19/2026 at 1:33:17 PM
Note this doesn't apply to GPUs among other things. To that end, counter based PRNGs such as Philox that employ a weakened cryptographic function are useful.by fc417fc802
2/19/2026 at 3:26:45 AM
For almost all practical purposes, a decent prng is just as good as a csprng. Cryptographic security only becomes relevant in an anverserial situation. Otherwise, you would need whatever weekmess exists in the prng to be somehow correlated with what you are trying to measure.by gizmo686
2/19/2026 at 6:40:18 AM
If practical purposes include simulating physical processes then the problems with orngs become quite important.by contubernio
2/19/2026 at 7:11:30 AM
What is an example there?by RandomLensman