Commit Graph

11 Commits

Author SHA1 Message Date
David E. O'Brien
9c23373c4e Tighten up the random seeding a little bit more. getpid() alone only
affect only lower bits of seed which would resulte in the same seed for
sequences of fast-started awk's resulting the same random sequence.

Submitted by:	ache
2001-11-03 02:14:10 +00:00
David E. O'Brien
02bbdc32ef Merge revs 1.9 (don't choke on long lines),
rev 1.3 (use srandom(time() ^ getpid())) into Gawk 3.1.0.
2001-11-02 21:26:14 +00:00
Sheldon Hearn
c3f4a67494 Fix bug that causes gawk to choke when parsing long source files.
Reported by:	Tony Fleisher <takhus@takhus.mind.net>
Submitted by:	Aharon Robbins <arnold@skeeve.com>
2000-09-04 10:42:19 +00:00
Sheldon Hearn
3c28a656f2 Merge the vendor release of gawk-3.0.6 onto HEAD.
This addresses one known problem in the PR database.

PR:		13921
Reported by:	Jin Guojun <j_guojun@lbl.gov>
2000-08-15 10:20:01 +00:00
Sheldon Hearn
7dfb2a9760 Fix zero-padding for printf formats which include a precision or
width.

This is a vendor-supplied patch.

Requested by:	bde
Submitted by:	Aharon Robbins <arnold@skeeve.com>
1999-12-23 18:24:31 +00:00
Sheldon Hearn
1abc97f5cf Fix conflicts. Add $FreeBSD$ as needed. 1999-09-27 08:57:04 +00:00
Andrey A. Chernov
bca8110182 Back out (unsigned char) cast, will use -funsigned-char instead 1997-10-26 12:14:54 +00:00
Andrey A. Chernov
833c9488dd Add more (unsigned char) casts to ctype macros
Fix casetable usage in the same manner too
1997-10-23 02:03:43 +00:00
Andrey A. Chernov
fca096e2e1 srandom(time()) is too weak even for joke, use srandom(time() ^ getpid())
at least. Note that srandomdev can't be used here since gawk preserve old
seed value.
1997-10-15 22:49:19 +00:00
Andrey A. Chernov
d4efecb283 Do not use gawk random, we have better one in libc 1997-10-15 14:01:31 +00:00
James Raynard
728510ce91 Virgin import of GNU awk 3.0.3 1997-10-14 18:17:11 +00:00