summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/res_random.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Improve the libc DNS resolver ID generation algorithm to be moredjm2008-04-131-43/+79
| | | | | | | resistant to prediction atacks by wrapping the existing LCG in a random permutation generator based on a Luby-Rackoff block cipher. lots of discussion and final ok deraadt@
* ansify. ok deraadt@ moritz@otto2005-03-251-3/+3
|
* niels kindly dropped clause 3/4 from the license. tnx!itojun2003-12-121-6/+1
|
* we can skip arc4random() call here. markusitojun2003-12-121-2/+2
|
* correct non-repetitive ID code, based on comments from niels provos.itojun2003-12-101-12/+16
| | | | | | - seed2 is necessary, but use it as "seed2 + x" not "seed2 ^ x". - skipping number is not needed, so disable it for 16bit generator (makes the repetition period to 30000)
* %d -> %u. mostly in #ifdef DEBUG.itojun2002-06-271-6/+6
|
* We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert2002-02-191-7/+1
|
* Part one of userland __P removal. Done with a simple regexp with some minor ↵millert2002-02-161-3/+3
| | | | hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
* grammer/spellingtodd2001-01-041-2/+2
|
* add an inner xor to make prediction attacks against the ids harder, dueprovos1999-08-261-3/+5
| | | | to an attack pointed out by David Wagner.
* #if __STDC__ --> #ifdef __STDC__mickey1997-07-251-2/+2
|
* Be more careful about possible type promotiontholo1997-04-301-1/+6
|
* skipped too many idsprovos1997-04-251-2/+2
|
* pmod to u_int16_t, Angelos kindly reminded meprovos1997-04-231-5/+5
|
* change time() to gettimeofday()provos1997-04-191-5/+8
|
* make things more complicated.provos1997-04-191-13/+46
|
* the before mentioned random number generator.provos1997-04-131-0/+192