summaryrefslogtreecommitdiff
path: root/sys/dev/rndvar.h
AgeCommit message (Collapse)Author
2008-10-10minor 3 was /dev/prandom, which used random(). make that use theTheo de Raadt
arandom code, just like minor 4. in fact, make them act exactly the same.
2008-06-09rename arc4random_bytes => arc4random_buf to match libc's nicer name;Damien Miller
ok deraadt@
2008-03-02Add a arc4random_uniform() that returns a uniformly distributed numberDamien Miller
in the range 0 <= x < upper_bound Please use this new API instead of "arc4random() % upper_bound", as it avoids the "modulo bias" that favours small results when upper_bound is not a power of two. feedback deraadt@ mcbride@; ok deraadt@
2003-11-03add arc4random_bytes. input ok mickey@Ted Unangst
2003-06-02kill the caluses three and four on some of my codeMichael Shalayeff
2002-05-27kill unused arc4random_8() APITheo de Raadt
2002-03-14First round of __P removal in sysTodd C. Miller
2001-09-22new type for video i/o entropyMichael Shalayeff
2000-04-13better has when adding entropy to the pool.Michael Shalayeff
bigger pool (4k).
2000-04-10add support for more random sources.Michael Shalayeff
make it easy to add more in the future. make extract_entropy() faster. more accurate stats.
2000-03-19faster log2, more stats, lazy random stirring, more stats, less debug, help ↵Michael Shalayeff
and ok from provos@
1997-06-28fix the typesTheo de Raadt
1997-06-24more accounting!Michael Shalayeff
1997-06-22wasn't a race after all. properly initialize event_q pointers so theflipk
last one doesn't point off the end.
1997-06-21revert, there's a nasty race condition here.flipk
1997-06-17count slow queue low entropy dropsMichael Shalayeff
bigger queue use queue overflows for arc4_stir()
1997-06-14split the treatment of the random eventsMichael Shalayeff
event_q by flipk@ spl fix by deraadt@ gother statistics about whole processing use 'sysctl kern.random' to view what had happened also fix wrong vm.psstrings description
1997-01-05Remove lots of timer_state structs as they just ate memory and only a few wasNiklas Hallqvist
ever used. Now a single state is kept for net, tty and disk events resp. Also, call the randomness from disk_unbusy instead of biodone, as biodone gets a lot of virtual events (from virtual filesystems etc), and as a bonus: feed xfer time and size into the entropy pool too.
1996-09-06cleanup and sync w/ latest Linux source.Michael Shalayeff
remove keyboard randomness entry point. make Free ppl happy, remove suspicious piece. missed: SHA neede in libkern, why not to put aRC4 there too?
1996-08-11Increased entropy through decreased typos.dm
1996-04-24Supply randomness source for the rnd device.Michael Shalayeff
1996-03-29The random data source driver itself.Michael Shalayeff
Initial commit.