summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/res_random.c
AgeCommit message (Expand)AuthorFilesLines
2016-04-05Prefer _MUTEX_*LOCK over _THREAD_PRIVATE_MUTEX_*LOCK() when thread-specificguenther1-4/+4
2015-10-05Wrap <resolv.h> so that internal calls go directguenther1-2/+3
2015-06-04force reseeding if pid has changed.eric1-2/+7
2014-07-20From ISO/IEC 9899:1999 and 9899:201x,guenther1-2/+2
2013-11-12permute15() should be static. Not cranking libc now, because it isderaadt1-2/+2
2013-04-17use CLOCK_MONOTONIC, and repair future time_t overflowderaadt1-8/+8
2013-03-26protect the PRG state with a mutex in res_randomid().eric1-2/+13
2008-04-13Improve the libc DNS resolver ID generation algorithm to be moredjm1-43/+79
2005-03-25ansify. ok deraadt@ moritz@otto1-3/+3
2003-12-12niels kindly dropped clause 3/4 from the license. tnx!itojun1-6/+1
2003-12-12we can skip arc4random() call here. markusitojun1-2/+2
2003-12-10correct non-repetitive ID code, based on comments from niels provos.itojun1-12/+16
2002-06-27%d -> %u. mostly in #ifdef DEBUG.itojun1-6/+6
2002-02-19We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert1-7/+1
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert1-3/+3
2001-01-04grammer/spellingtodd1-2/+2
1999-08-26add an inner xor to make prediction attacks against the ids harder, dueprovos1-3/+5
1997-07-25#if __STDC__ --> #ifdef __STDC__mickey1-2/+2
1997-04-30Be more careful about possible type promotiontholo1-1/+6
1997-04-25skipped too many idsprovos1-2/+2
1997-04-23pmod to u_int16_t, Angelos kindly reminded meprovos1-5/+5
1997-04-19change time() to gettimeofday()provos1-5/+8
1997-04-19make things more complicated.provos1-13/+46
1997-04-13the before mentioned random number generator.provos1-0/+192