Commit Graph

27 Commits

Author SHA1 Message Date
dholland 3e58855b26 Fix misuse of arc4random by using arc4random_uniform.
Noticed by riastradh.
2017-02-06 02:26:44 +00:00
joerg 6818646ac8 Use __dead 2011-09-16 15:39:25 +00:00
lukem 932c7df00d fix sign-compare issue 2009-04-13 07:31:36 +00:00
wiz 73ff6fdf20 Mark up author with An and Aq. 2009-02-19 10:08:15 +00:00
yamt 314bfbb3be remove BUGS section. this has been changed to use arc4random while ago. 2009-02-18 13:42:06 +00:00
hubertf b1eaefe397 Xref shuffle(1) from random(6), and vice versa 2007-03-20 16:12:40 +00:00
christos cdab3a7a06 More programs using efun. 2006-08-26 18:17:41 +00:00
perry e45cb21451 Mike Cheponis noted that I didn't list the edition of Knuth that the
page number refers to. Fixed.
2004-12-01 00:03:45 +00:00
itojun 1ce764ab35 use arc4random 2004-09-10 05:34:54 +00:00
cube 5446fd12e5 Teach getopt about the new -0 option. Noted by Jeff Ito in PR 25621. 2004-05-18 04:09:21 +00:00
jmmv b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
wiz f3d114a539 Improve grammar in last, and bump date for -0. 2003-08-23 22:36:21 +00:00
christos f49a04b8f2 make -0 actually work 2003-08-21 00:01:13 +00:00
christos 0d30aed428 Add -0 option. 2003-08-20 23:37:51 +00:00
lukem ef83aa34d9 clear errno before strto(u)l() if we're going to test it for ERANGE afterwards 2003-04-18 03:21:00 +00:00
wiz 505d53c807 Clarify input source. Drop a duplicate .Pp while I am here. 2002-03-05 15:06:16 +00:00
simonb 49e4ac39e7 Include <limits.h> for LONG_MIN/LONG_MAX.
Put kernel include file first, as per KNF.
2001-09-01 02:17:29 +00:00
perry 1c06d95c62 new KNF style function declarations 2001-05-29 23:22:42 +00:00
mycroft 3fe322d08e Power of 2 realloc. 2001-03-16 08:02:32 +00:00
cgd a8ec668ddf convert to use getprogname() 2001-02-19 23:03:42 +00:00
is 33247bac6d Add missing newline in usage string. 1999-02-03 16:22:16 +00:00
fair a7b28c97e7 This trivial and computationally useless pointer initialization makes
gcc 2.7.2.2 happy on m68k again.
1998-12-07 04:10:13 +00:00
perry ff669e2e1a Small bug fix from Soren S. Jorvang (soren@t.dk) 1998-12-04 17:47:06 +00:00
thorpej bdbbf87163 Must cast size_t to long and use %ld to print. 1998-09-30 18:37:05 +00:00
christos 635d311056 - argument error detection
- long line support
- argument change [-f <fname>] instead of [-c <args>]
- conditional prototypes
1998-09-24 12:28:39 +00:00
perry 50a3fa9e59 make compile with warnings on. 1998-09-23 21:45:44 +00:00
perry 6e92230560 Add shuffle, a small program for producing permutations.
Note that is still a little cleanup to be done, but I thought it was
the right point to commit.
1998-09-23 21:05:59 +00:00