<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libc/stdlib/rand.c, branch release/5.3.0_cvs</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>This commit was manufactured by cvs2svn to create tag</title>
<updated>2004-11-04T19:12:42+00:00</updated>
<author>
<name>cvs2svn</name>
<email>cvs2svn@FreeBSD.org</email>
</author>
<published>2004-11-04T19:12:42+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=3f86d8a2ea3f3265afaa1fd263b0004c5c000e69'/>
<id>3f86d8a2ea3f3265afaa1fd263b0004c5c000e69</id>
<content type='text'>
'RELENG_5_3_0_RELEASE'.

This commit was manufactured to restore the state of the 5.3-RELEASE image.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
'RELENG_5_3_0_RELEASE'.

This commit was manufactured to restore the state of the 5.3-RELEASE image.
</pre>
</div>
</content>
</entry>
<entry>
<title>Back out "drop first N values" method of removing monotonically increased</title>
<updated>2003-02-17T03:52:35+00:00</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>2003-02-17T03:52:35+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=49abb2a4f8eaa957bcbcd1966ba2cc0ba09c0662'/>
<id>49abb2a4f8eaa957bcbcd1966ba2cc0ba09c0662</id>
<content type='text'>
seed-&gt;first value correlation. It breaks rand_r()... Other possible methods
like shuffling inside aray will breaks rand_r() too, because it assumes
only one word state, i.e. nothing extra can be added after seed assignment
in srand().

BTW, for old formulae seed-&gt;first value correlation is not so monotonically
increased as with other Linear Congruential Generators of this type only
becase arithmetic overflow happens. But overflow affects distribution
and lower bits very badly, as many articles says, such type of overflow
not improves PRNG.

So, monotonically increased seed-&gt;first value correlation problem remains...
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
seed-&gt;first value correlation. It breaks rand_r()... Other possible methods
like shuffling inside aray will breaks rand_r() too, because it assumes
only one word state, i.e. nothing extra can be added after seed assignment
in srand().

BTW, for old formulae seed-&gt;first value correlation is not so monotonically
increased as with other Linear Congruential Generators of this type only
becase arithmetic overflow happens. But overflow affects distribution
and lower bits very badly, as many articles says, such type of overflow
not improves PRNG.

So, monotonically increased seed-&gt;first value correlation problem remains...
</pre>
</div>
</content>
</entry>
<entry>
<title>Since we drop NSHUFF values now, set default seed to what it becomes</title>
<updated>2003-02-05T21:25:50+00:00</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>2003-02-05T21:25:50+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=f3047249d4caf0e02dce97c8bc0f0ce2eda7ee78'/>
<id>f3047249d4caf0e02dce97c8bc0f0ce2eda7ee78</id>
<content type='text'>
after srand(1)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
after srand(1)
</pre>
</div>
</content>
</entry>
<entry>
<title>For rand(3) and random(3) TYPE_0 drop NSHUFF values right after srand{om}()</title>
<updated>2003-02-04T11:24:08+00:00</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>2003-02-04T11:24:08+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=ddd972a9bd5f8a73cd9eb33181072d07ea99aa73'/>
<id>ddd972a9bd5f8a73cd9eb33181072d07ea99aa73</id>
<content type='text'>
to remove part of seed -&gt; 1st value correlation. Correlation still remains
because of algorithm limits. Note that old algorithm have even stronger
correlation, especially in the lower bits area, but not eye-visible, as
current one.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
to remove part of seed -&gt; 1st value correlation. Correlation still remains
because of algorithm limits. Note that old algorithm have even stronger
correlation, especially in the lower bits area, but not eye-visible, as
current one.
</pre>
</div>
</content>
</entry>
<entry>
<title>Park &amp; Miller PRNG can be safely initialized with any value but 0 and stuck</title>
<updated>2003-02-03T10:22:12+00:00</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>2003-02-03T10:22:12+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2f5ef51de2995dce0f81042d954bb9c8f00e7d9f'/>
<id>2f5ef51de2995dce0f81042d954bb9c8f00e7d9f</id>
<content type='text'>
at 0 as designed. Its BSD adaptation tries to fight it by mapping 0 to
2147483647 after calculation, but this method not works since 2147483647
seed returns to 0 again on the next interation. Instead of after calculation
mapping, map 0 to another value _before_ calculation, so it never stucks.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
at 0 as designed. Its BSD adaptation tries to fight it by mapping 0 to
2147483647 after calculation, but this method not works since 2147483647
seed returns to 0 again on the next interation. Instead of after calculation
mapping, map 0 to another value _before_ calculation, so it never stucks.
</pre>
</div>
</content>
</entry>
<entry>
<title>For some combinations of variable sizes and RAND_MAX value rand_r()</title>
<updated>2003-02-02T14:27:51+00:00</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>2003-02-02T14:27:51+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=62c4150e1ed8059b8c394ef1a53dd50641c7c664'/>
<id>62c4150e1ed8059b8c394ef1a53dd50641c7c664</id>
<content type='text'>
may store less amount bits for seed, than available. Fix it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
may store less amount bits for seed, than available. Fix it.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add missing #include "namespace.h".</title>
<updated>2003-01-03T23:38:21+00:00</updated>
<author>
<name>Tim J. Robbins</name>
<email>tjr@FreeBSD.org</email>
</author>
<published>2003-01-03T23:38:21+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2b6839cf10a12ec5c06f05566c6b0fd243476363'/>
<id>2b6839cf10a12ec5c06f05566c6b0fd243476363</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix the style of the SCM ID's.</title>
<updated>2002-03-22T21:53:29+00:00</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2002-03-22T21:53:29+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=333fc21e3cd79bca0c94d7722c5a56cb5ad078d1'/>
<id>333fc21e3cd79bca0c94d7722c5a56cb5ad078d1</id>
<content type='text'>
I believe have made all of libc .c's as consistent as possible.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I believe have made all of libc .c's as consistent as possible.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add a long-overdue nail to the deprecated /dev/urandom interface</title>
<updated>2001-10-30T21:26:50+00:00</updated>
<author>
<name>Mark Murray</name>
<email>markm@FreeBSD.org</email>
</author>
<published>2001-10-30T21:26:50+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=724641c6f4800f0ca277f82746e01dd761af3534'/>
<id>724641c6f4800f0ca277f82746e01dd761af3534</id>
<content type='text'>
by asking some things that need unpredictable numbers to read
/dev/random instead.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
by asking some things that need unpredictable numbers to read
/dev/random instead.
</pre>
</div>
</content>
</entry>
<entry>
<title>urandom(4) -&gt; random(4) in comments.</title>
<updated>2001-06-07T02:32:18+00:00</updated>
<author>
<name>Dima Dorfman</name>
<email>dd@FreeBSD.org</email>
</author>
<published>2001-06-07T02:32:18+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a7d81577d674ff427670a0d34c7ce6d9c5949132'/>
<id>a7d81577d674ff427670a0d34c7ce6d9c5949132</id>
<content type='text'>
PR:		27858
Submitted by:	Yoshihiro Koya &lt;Yoshihiro.Koya@math.yokohama-cu.ac.jp&gt;
Reviewed by:	md5(1)
Approved by:	markm
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR:		27858
Submitted by:	Yoshihiro Koya &lt;Yoshihiro.Koya@math.yokohama-cu.ac.jp&gt;
Reviewed by:	md5(1)
Approved by:	markm
</pre>
</div>
</content>
</entry>
</feed>
