summaryrefslogtreecommitdiffstats
path: root/games/random
Commit message (Collapse)AuthorAgeFilesLines
* Correct an error in the previous revision. RAND_MAX is the maximum valuejhb2005-06-221-3/+9
| | | | | | | | | | for rand(3), not random(3). random(3) is defined to return values between 0 and 2^31-1, so add a local RANDOM_MAX constant to this file that is defined as 2^31-1 and use that in place of RAND_MAX. Reviewed by: bde Approved by: re (dwhite) MFC after: 1 week
* Fix for 64-bit platforms. random() returns values between 0 and RAND_MAX,jhb2005-05-271-3/+3
| | | | | | | | | and RAND_MAX != LONG_MAX on 64-bit platforms. PR: amd64/81279 Submitted by: Vivek Khera vivek at khera dot org Submitted by: Adriaan de Groot groot at kde dot org MFC after: 1 week
* Sync program's usage() with manpage's SYNOPSIS.ru2005-02-091-1/+1
|
* Sort sections.ru2005-01-181-4/+4
|
* Properly initialise 'filename' so that random -l doesn't try to open NULL.stefanf2004-10-031-5/+4
| | | | | Const-qualify 'filename' to avoid a strdup() call due to -Wwrite-strings silliness.
* Make the __FBSDID usage consistentobrien2003-05-051-3/+2
| | | | and protect copyright[] from Gcc 3.3's whining.
* Fixed SYNOPSIS.ru2003-02-231-20/+26
| | | | | | | Expanded stdin/stdout definitions. Ordered the SEE ALSO references. Moved some chat from the BUGS section to freebsd-chat@. Removed ``cvs log'' material from the HISTORY section.
* flexlint rears its head as well as some style(9) fixes[1]. Fixed aseanc2003-02-154-73/+83
| | | | | | | | | few bugs for a few corner cases and correctly handle the case where read(2) is read()'ing from a non-file descriptor and could get fewer bytes back than the buffer, but it isn't EOF[2]. random(6) extensively tested and believed to be bug free (save performance for large files). Submitted by: mkm [1], tjr[2]
* Update random(6) to have the ability to randomize a file/stdin basedseanc2003-02-115-20/+389
| | | | | | | off of lines or words. See the man page for details. Reviewed by: markm MFC after: 3 days
* Remove __Pimp2002-02-181-1/+1
| | | | | | Remove __STDC__ (which means we now use stdarg rather than vararg) Remove register Remove main prototype
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* - Backout botched attempt to intoduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for games/ to 6.ru2001-03-201-1/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-2/+2
|
* -Wall fixes.billf1999-12-121-1/+1
|
* copyright/sccsid/rcsid cleanup.billf1999-11-301-1/+5
|
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-121-0/+1
| | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde
* Wargh! Who went and changed all the getopt() comparisons from -1 tojkh1998-03-011-1/+1
| | | | | | | EOF? The getopt(3) manpage clearly states that the return value is *-1*, not EOF! Besides, getopt(3) isn't reading from a file. :) Noticed-while: merging to 2.2 (where this is correct).
* Remove so-called revoke, this game never installed sguidache1997-09-011-4/+0
|
* Change games from setuid games to setgid games.eivind1997-09-011-0/+4
| | | | | Reviewed by: maybe@yes.no Obtained from: OpenBSD (mostly deraadt@openbsd.org)
* Remove srandomdev fallback codeache1997-06-141-2/+1
|
* Use srandomdev() nowache1997-03-301-4/+5
| | | | Add range checking for invalid denominator values
* Fix srandom arg type accodring to Lite2ache1997-03-111-1/+1
| | | | Use ^ getpid() instead of + getpid()
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
|
* Include <limits.h> to get LONG_MAX - don't depend on namespace pollutionbde1995-02-031-0/+1
| | | | in <time.h>.
* Bring in the 4.4 Lite games directory, modulo man page changes and segregationjkh1994-09-043-0/+223
of the x11 based games. I'm not going to tag the originals with bsd_44_lite and do this in two stages since it's just not worth it for this collection, and I've got directory renames to deal with that way. Bleah. Submitted by: jkh
OpenPOWER on IntegriCloud