<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/lib/libc/stdlib/rand.c, branch release/5.4.0_cvs</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F5.4.0_cvs</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F5.4.0_cvs'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2005-05-07T17:51:10Z</updated>
<entry>
<title>This commit was manufactured by cvs2svn to create tag</title>
<updated>2005-05-07T17:51:10Z</updated>
<author>
<name>cvs2svn</name>
<email>cvs2svn@FreeBSD.org</email>
</author>
<published>2005-05-07T17:51:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=e87a6b5d6805bf9f3f9faf53db0ba96345ef0f77'/>
<id>urn:sha1:e87a6b5d6805bf9f3f9faf53db0ba96345ef0f77</id>
<content type='text'>
'RELENG_5_4_0_RELEASE'.

This commit was manufactured to restore the state of the 5.4-RELEASE image.
</content>
</entry>
<entry>
<title>Back out "drop first N values" method of removing monotonically increased</title>
<updated>2003-02-17T03:52:35Z</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>2003-02-17T03:52:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=49abb2a4f8eaa957bcbcd1966ba2cc0ba09c0662'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>Since we drop NSHUFF values now, set default seed to what it becomes</title>
<updated>2003-02-05T21:25:50Z</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>2003-02-05T21:25:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=f3047249d4caf0e02dce97c8bc0f0ce2eda7ee78'/>
<id>urn:sha1:f3047249d4caf0e02dce97c8bc0f0ce2eda7ee78</id>
<content type='text'>
after srand(1)
</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:08Z</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>2003-02-04T11:24:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=ddd972a9bd5f8a73cd9eb33181072d07ea99aa73'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>Park &amp; Miller PRNG can be safely initialized with any value but 0 and stuck</title>
<updated>2003-02-03T10:22:12Z</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>2003-02-03T10:22:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=2f5ef51de2995dce0f81042d954bb9c8f00e7d9f'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>For some combinations of variable sizes and RAND_MAX value rand_r()</title>
<updated>2003-02-02T14:27:51Z</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>2003-02-02T14:27:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=62c4150e1ed8059b8c394ef1a53dd50641c7c664'/>
<id>urn:sha1:62c4150e1ed8059b8c394ef1a53dd50641c7c664</id>
<content type='text'>
may store less amount bits for seed, than available. Fix it.
</content>
</entry>
<entry>
<title>Add missing #include "namespace.h".</title>
<updated>2003-01-03T23:38:21Z</updated>
<author>
<name>Tim J. Robbins</name>
<email>tjr@FreeBSD.org</email>
</author>
<published>2003-01-03T23:38:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=2b6839cf10a12ec5c06f05566c6b0fd243476363'/>
<id>urn:sha1:2b6839cf10a12ec5c06f05566c6b0fd243476363</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix the style of the SCM ID's.</title>
<updated>2002-03-22T21:53:29Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2002-03-22T21:53:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=333fc21e3cd79bca0c94d7722c5a56cb5ad078d1'/>
<id>urn:sha1:333fc21e3cd79bca0c94d7722c5a56cb5ad078d1</id>
<content type='text'>
I believe have made all of libc .c's as consistent as possible.
</content>
</entry>
<entry>
<title>Add a long-overdue nail to the deprecated /dev/urandom interface</title>
<updated>2001-10-30T21:26:50Z</updated>
<author>
<name>Mark Murray</name>
<email>markm@FreeBSD.org</email>
</author>
<published>2001-10-30T21:26:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=724641c6f4800f0ca277f82746e01dd761af3534'/>
<id>urn:sha1:724641c6f4800f0ca277f82746e01dd761af3534</id>
<content type='text'>
by asking some things that need unpredictable numbers to read
/dev/random instead.
</content>
</entry>
<entry>
<title>urandom(4) -&gt; random(4) in comments.</title>
<updated>2001-06-07T02:32:18Z</updated>
<author>
<name>Dima Dorfman</name>
<email>dd@FreeBSD.org</email>
</author>
<published>2001-06-07T02:32:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=a7d81577d674ff427670a0d34c7ce6d9c5949132'/>
<id>urn:sha1: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>
</entry>
</feed>
