• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Add note about use of /dev/random (WOCommon, 13b9765)

Created 10/3/2007, updated 3/5/2024
  • snippets

Reading too many bits from /dev/random may constitute an abuse of a scarce resource, and the read() call may block if there is not enough random data anyway. Ideally in this case we should only read enough to seed another (psuedo-random) generator.

Signed-off-by: Greg Hurrell <greg@hurrell.net>

← Rails on Git: How much hype fits in 9MB?
Wish this was available for Mac OS X →

All snippets

Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).