summaryrefslogtreecommitdiff
path: root/sys/dev/rnd.c
AgeCommit message (Expand)Author
2011-01-01Do not fold the MD5 in half. This might have made sense to someone whenTheo de Raadt
2011-01-01comment cleanupTheo de Raadt
2010-12-31make randomattach do the parts of it's job in the right order, then moveTheo de Raadt
2010-12-31cleanup the ioctl functionTheo de Raadt
2010-12-31delete includes we do not needTheo de Raadt
2010-12-31further improvements describing what we are doingTheo de Raadt
2010-12-31all random nodes have been arc4-based for a while, so none of them everTheo de Raadt
2010-12-30be more cynical about boot-time entropy, and fold time and entropy data in.Theo de Raadt
2010-12-29knfTheo de Raadt
2010-12-29Since there is only one random_state, we can access it directly withoutTheo de Raadt
2010-12-29arc4random_count is not used; other things inside rndstats do the accountingTheo de Raadt
2010-12-29the rnd_debug stuff was not usefulTheo de Raadt
2010-12-29kill RND_ARND_OLD, and decrease RND_NODEV to account for it; ok djmTheo de Raadt
2010-12-29Remove the get_random_bytes() API.Theo de Raadt
2010-12-29the random ioctl stuff is not very useful. I want to see all theTheo de Raadt
2010-12-24try to update the monster comment at the top of this file to explainTheo de Raadt
2010-12-22rewrite randomwrite() for clarity after discussion with mikebTheo de Raadt
2010-11-21adding timer randomness in ioctl doesn't really help and looks suspicious.Ted Unangst
2010-10-02remove support for srandom and urandom. direct everyone to arandom instead.Ted Unangst
2010-04-20remove proc.h include from uvm_map.h. This has far reaching effects, asTed Unangst
2009-11-09Every selwakeup() should have a matching KNOTE() (even if kqueue isn'tNicholas Marriott
2009-06-05Sanity check: we overrun the rnd_ed[] array if nbits is 32, but thatPhilip Guenthe
2008-12-15remove i386-only inline assembler roll() function; gcc optimises theDamien Miller
2008-11-24extra decl not needed; spotted by djmTheo de Raadt
2008-11-24allow entropy to be queued before randomattach() is calledTheo de Raadt
2008-11-24Seed the random pool with the dmesg buffer at randomattach().Marco Pfatschbacher
2008-10-15kernel/5592: yield() between copying out large chunks of random data toDamien Miller
2008-10-10minor 3 was /dev/prandom, which used random(). make that use theTheo de Raadt
2008-09-10Convert timeout_add() calls using multiples of hz to timeout_add_sec()Bret Lambert
2008-06-11correct long since bitrotted commentsDamien Miller
2008-06-10reorder functions and variables in rnd.c so they are more logicallyDamien Miller
2008-06-09simplify math for arc4random_uniform() suggested byDamien Miller
2008-06-09rename arc4random_bytes => arc4random_buf to match libc's nicer name;Damien Miller
2008-06-04fix math screwup that reintroduced a bias for upper_bounds in rangeDamien Miller
2008-03-02Add a arc4random_uniform() that returns a uniformly distributed numberDamien Miller
2007-12-29switch from spls to mutexes for protecting the random state.David Gwynne
2007-10-15zero the right object, not some hunk of stack; ok henric@Damien Miller
2007-10-15Switch arc4random to using routines from crypto/arc4.[ch], and reworkDamien Miller
2007-10-09MALLOC -> mallocGilles Chehade
2007-06-17ansify/de-registerJasper Lievisse Adriaanse
2007-04-10``it's'' -> ``its'' when the grammar gods require this change.Miod Vallat
2006-04-11make this use nanotime, not microtime; ok mickey@Damien Miller
2005-07-31use monotonic time for repeat event detections; feedback and ok deraadt@Damien Miller
2005-07-07fix accounting bug on extraction - we were incorrectly subtracting many timesDamien Miller
2005-05-27De-inline a couple of long functions, which also makes them debugger-visible....Hakan Olsson
2005-03-04Fix a variable name in a comment; from Clint <cruoho@gmail.com>; ok tdeval@Robert Nagy
2005-01-27poll can ever deny reads for srandom only; millert@ okMichael Shalayeff
2005-01-27In randompoll() the write check was overriding the results of the read check.Todd C. Miller
2004-07-21remove a few inlines from funcs that are used more than once and make code bi...Michael Shalayeff
2004-07-06use MALLOC/FREE for fixed size buffer allocationsMichael Shalayeff