<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libc/stdlib/rand.3, branch OPENBSD_7_9</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2022-03-29T18:15:52+00:00</updated>
<entry>
<title>man pages: add missing word, The foo() ... -&gt; The foo() function ...</title>
<updated>2022-03-29T18:15:52+00:00</updated>
<author>
<name>naddy</name>
<email></email>
</author>
<published>2022-03-29T18:15:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=bdf85107fe61cee7a4395de94b85298d6592c8ae'/>
<id>urn:sha1:bdf85107fe61cee7a4395de94b85298d6592c8ae</id>
<content type='text'>
ok jmc@ schwarze@
</content>
</entry>
<entry>
<title>Some people still argue that rand(3) and random(3) have suitable deterministic</title>
<updated>2021-02-12T17:03:51+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>2021-02-12T17:03:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=96694adb26fa7287b876515de64c63e787de5007'/>
<id>urn:sha1:96694adb26fa7287b876515de64c63e787de5007</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>Xr and Ox fixes;</title>
<updated>2014-12-09T21:55:39+00:00</updated>
<author>
<name>jmc</name>
<email></email>
</author>
<published>2014-12-09T21:55:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=7b4389f21ce09e7d34ad8e9cedcf015c105d2bb1'/>
<id>urn:sha1:7b4389f21ce09e7d34ad8e9cedcf015c105d2bb1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Change rand(), random(), drand48(), lrand48(), mrand48(), and srand48()</title>
<updated>2014-12-08T21:45:20+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>2014-12-08T21:45:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9736a7f2a9e739ee9fc431040def5680fbb8794a'/>
<id>urn:sha1:9736a7f2a9e739ee9fc431040def5680fbb8794a</id>
<content type='text'>
to returning strong random by default, source from arc4random(3).
Parameters to the seeding functions are ignored, and the subsystems remain
in strong random mode.  If you wish the standardized deterministic mode,
call srand_deterministic(), srandom_determistic(), srand48_deterministic(),
seed48_deterministic() or lcong48_deterministic() instead.
The re-entrant functions rand_r(), erand48(), nrand48(), jrand48() are
unaffected by this change and remain in deterministic mode (for now).

Verified as a good roadmap forward by auditing 8800 pieces of software.
Roughly 60 pieces of software will need adaptation to request the
deterministic mode.

Violates POSIX and C89, which violate best practice in this century.
ok guenther tedu millert
</content>
</entry>
<entry>
<title>rand() is a pseudo-random number generator</title>
<updated>2014-11-25T17:41:12+00:00</updated>
<author>
<name>millert</name>
<email></email>
</author>
<published>2014-11-25T17:41:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ba34ec60686eb8f1dc15739220f1d1ea67d4dd7e'/>
<id>urn:sha1:ba34ec60686eb8f1dc15739220f1d1ea67d4dd7e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>it is 2014, and we still need to encourage people away from srand()</title>
<updated>2014-07-17T23:12:28+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>2014-07-17T23:12:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=60721d2b6012c2aa79de24c38ab93b24f8a8d6ab'/>
<id>urn:sha1:60721d2b6012c2aa79de24c38ab93b24f8a8d6ab</id>
<content type='text'>
and random().  Sigh.
</content>
</entry>
<entry>
<title>Add some missing names to the NAME sections.</title>
<updated>2014-04-07T17:57:56+00:00</updated>
<author>
<name>schwarze</name>
<email></email>
</author>
<published>2014-04-07T17:57:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=fa13c5324eed9868f142f97ff49f21d410dbcf23'/>
<id>urn:sha1:fa13c5324eed9868f142f97ff49f21d410dbcf23</id>
<content type='text'>
For inet(3), go the other way, remove some bogus symlinks.
Found while testing the new makewhatis(8).
ok jmc@
</content>
</entry>
<entry>
<title>obvious .Pa fixes; found with mandocdb(8)</title>
<updated>2014-01-21T03:15:45+00:00</updated>
<author>
<name>schwarze</name>
<email></email>
</author>
<published>2014-01-21T03:15:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d60d9234a28e0f31b490cea083e7015beaee4f1b'/>
<id>urn:sha1:d60d9234a28e0f31b490cea083e7015beaee4f1b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>HISTORY; tweaks and ok  sobrado@ jmc@</title>
<updated>2013-07-18T10:14:50+00:00</updated>
<author>
<name>schwarze</name>
<email></email>
</author>
<published>2013-07-18T10:14:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5a81f294f6673dd54b1fb05ddc613c4296e3b17f'/>
<id>urn:sha1:5a81f294f6673dd54b1fb05ddc613c4296e3b17f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarze</title>
<updated>2013-06-05T03:39:23+00:00</updated>
<author>
<name>tedu</name>
<email></email>
</author>
<published>2013-06-05T03:39:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2b7c3ac1a78656e1ad7e45f24ecbff6f63f289e4'/>
<id>urn:sha1:2b7c3ac1a78656e1ad7e45f24ecbff6f63f289e4</id>
<content type='text'>
</content>
</entry>
</feed>
