[HN Gopher] Random Number Generator Recommendations for Applicat... ___________________________________________________________________ Random Number Generator Recommendations for Applications Author : rdpintqogeogsaa Score : 32 points Date : 2023-05-28 07:37 UTC (2 days ago) (HTM) web link (peteroupc.github.io) (TXT) w3m dump (peteroupc.github.io) | wepple wrote: | This article fails to explain why someone should explicitly reach | for an RNG over PRNG. | | It also suggests os.urandom as a Python RNG which (as the name | suggests) uses /dev/urandom or the getrandom() syscall, both of | which are PRNGs | rootw0rm wrote: | nanorand for rust! | | edit: now after reading about rand_xoshiro i'm curious to try it | out | djbusby wrote: | If I'm using the random routines from libsodium is that good | enough? | fastneutron wrote: | All this, and the nuclear business is still using variants of | LCGs from 60 years ago [1] for Monte Carlo simulations. | | In this case, their speed, repeatability and "good enough" | statistical properties haven't motivated much to change. | | 1. https://www.osti.gov/biblio/976209 | some_furry wrote: | In PHP, at least, random_bytes() is faster than their "high | quality" example. | jagged-chisel wrote: | How does the quality of random_bytes() compare? | djbusby wrote: | The manual says it uses high-quality sources | | https://www.php.net/manual/en/function.random-bytes.php | | Edit: the PHP docs seem to meet the requirements from the | article but, the article has a different recommendation | (odd?, Maybe I missed something) ___________________________________________________________________ (page generated 2023-05-30 23:00 UTC)