Some people still argue that rand(3) and random(3) have suitable deterministic
authorderaadt <deraadt@openbsd.org>
Fri, 12 Feb 2021 17:03:51 +0000 (17:03 +0000)
committerderaadt <deraadt@openbsd.org>
Fri, 12 Feb 2021 17:03:51 +0000 (17:03 +0000)
commit70d9094f4044ec4d667009ef66d835cce8e9a22a
treeff6efc4790783abc990ba4d1aaf2eae109ae76af
parentf9a0c1a6378a904bcfda8b3ff89a25f74a8382fd
Some people still argue that rand(3) and random(3) have suitable deterministic
use cases, so explain the situation a bit more.  Since the 80's, I estimate
around 5 algorithm changes, so any chosen seed is unrepeatable UB.

+The deterministic sequence algorithm changed a number of times since
+original development, is underspecified, and should not be relied upon to
+remain consistent between platforms and over time.

ok jmc kettenis
lib/libc/stdlib/rand.3
lib/libc/stdlib/random.3