<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/games/random, branch upstream/10.1.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=upstream%2F10.1.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=upstream%2F10.1.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2012-10-22T03:06:59Z</updated>
<entry>
<title>Free buf when its no longer used. This helps eliminate a static analysis</title>
<updated>2012-10-22T03:06:59Z</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2012-10-22T03:06:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c969ca9408ebdda12176a10520a73ea4f7a3c23c'/>
<id>urn:sha1:c969ca9408ebdda12176a10520a73ea4f7a3c23c</id>
<content type='text'>
warning.

PR:		ports/172566
Submitted by:	Erik Cederstrand &lt;erik@cederstrand.dk&gt;
Approved by:	cperciva
MFC after:	3 days
</content>
</entry>
<entry>
<title>Drop advertising clause in manpages. It was done a long time ago</title>
<updated>2010-12-06T19:12:51Z</updated>
<author>
<name>Ulrich Spörlein</name>
<email>uqs@FreeBSD.org</email>
</author>
<published>2010-12-06T19:12:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=dfc0276185c382d2d974e1420b5a71f3421f5dde'/>
<id>urn:sha1:dfc0276185c382d2d974e1420b5a71f3421f5dde</id>
<content type='text'>
for the source code.

Discussed with:	core
</content>
</entry>
<entry>
<title>random(6): avoid dead assignments</title>
<updated>2010-06-14T13:03:25Z</updated>
<author>
<name>Ulrich Spörlein</name>
<email>uqs@FreeBSD.org</email>
</author>
<published>2010-06-14T13:03:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a1183253683c9f9a1523ae67a8c13dac1dc8d6c6'/>
<id>urn:sha1:a1183253683c9f9a1523ae67a8c13dac1dc8d6c6</id>
<content type='text'>
Found by:	clang static analyzer
</content>
</entry>
<entry>
<title>Remove the third clause for the Berkeley parts of games, per the</title>
<updated>2010-02-15T18:46:02Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2010-02-15T18:46:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f5144a270dbff32900e05db1f9ef0dd8d505c3eb'/>
<id>urn:sha1:f5144a270dbff32900e05db1f9ef0dd8d505c3eb</id>
<content type='text'>
letter in /COPYRIGHT.
</content>
</entry>
<entry>
<title>games: make WARNS=6 the default, remove overrides</title>
<updated>2010-02-15T14:32:00Z</updated>
<author>
<name>Ulrich Spörlein</name>
<email>uqs@FreeBSD.org</email>
</author>
<published>2010-02-15T14:32:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f6a71b56a19cfe65b4c6f340dac87a7948c43f1b'/>
<id>urn:sha1:f6a71b56a19cfe65b4c6f340dac87a7948c43f1b</id>
<content type='text'>
This also bumps factor, fortune, primes, and random to WARNS=6.

Approved by:	ed (Co-mentor)
</content>
</entry>
<entry>
<title>Suggections from bde@</title>
<updated>2008-08-11T23:24:42Z</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>2008-08-11T23:24:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d77b331074778d8a2aab9b362b1e4cd583aef4f3'/>
<id>urn:sha1:d77b331074778d8a2aab9b362b1e4cd583aef4f3</id>
<content type='text'>
1) Split too long source lines
2) Portable code should not assume that null pointer == all-bits-0,
so back out prev. calloc() change.

Submitted by:   bde
</content>
</entry>
<entry>
<title>All cosmetic.</title>
<updated>2008-08-10T11:31:56Z</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>2008-08-10T11:31:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2a3fabc4d3dbc070216fffb28af70e8066bf3509'/>
<id>urn:sha1:2a3fabc4d3dbc070216fffb28af70e8066bf3509</id>
<content type='text'>
1) Rename RANDOM_MAX to RANDOM_MAX_PLUS1 to not confuse with random()'s max
2) Use calloc() instead of zeroing fields explicitly
3) "too many lines" -&gt; "too many delimiters" for err()
</content>
</entry>
<entry>
<title>1) Fix longstanding math bug with denominator &gt; 1 (wrong probability).</title>
<updated>2008-08-08T02:46:47Z</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>2008-08-08T02:46:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2c38883d2a5b3b16ad833439c59f9adbf22ceda0'/>
<id>urn:sha1:2c38883d2a5b3b16ad833439c59f9adbf22ceda0</id>
<content type='text'>
Test case:
	random -f some_small_file 10000
(in most cases must be no output)
2) Prevent number of lines &gt; RANDOM_MAX (overflow or nothing may be
choosed) with EFBIG err()
3) After line is found, terminate list loop for -U case too,
since nothing to do in the rest of the loop left.
</content>
</entry>
<entry>
<title>I was confused a bit by the wrong construction with RAND_MAX</title>
<updated>2008-08-08T01:42:17Z</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>2008-08-08T01:42:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=67cc8dbb1a19f0e852db2099ea6011c50c5b4ce1'/>
<id>urn:sha1:67cc8dbb1a19f0e852db2099ea6011c50c5b4ce1</id>
<content type='text'>
used in randomize_fd.c.
Although the max value is the same currently, RAND_MAX is for rand(),
not for random().
So move RANDOM_MAX const to the common file now, make it UL and
use in randomize_fd.c too.
(in any case its old value was 1 less then must be, as noted in
the prev. commit)
</content>
</entry>
<entry>
<title>1) Replace hardcoded RANDOM_MAX macro with wrong (1 less than must be)</title>
<updated>2008-08-08T01:02:30Z</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>2008-08-08T01:02:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5b6bf07632000ef3c3250b1f9b8f5660c4953052'/>
<id>urn:sha1:5b6bf07632000ef3c3250b1f9b8f5660c4953052</id>
<content type='text'>
value with ((double)RAND_MAX + 1)
2) For exit code increase valid denominator upper range from 255 to 256
since returned value is [0 .. denom - 1]
</content>
</entry>
</feed>
