Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jul 2008 21:57:30 +0000 (UTC)
From:      "Andrey A. Chernov" <ache@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/gen arc4random.c
Message-ID:  <200807212157.m6LLviBJ095778@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
ache        2008-07-21 21:57:30 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/gen         arc4random.c 
  Log:
  SVN rev 180676 on 2008-07-21 21:57:30Z by ache
  
  1) Use __packed attr on rdat structure to make it exact 128 bytes.
  2) Use gettimeofday() and getpid() only if reading from /dev/urandom
  fails or impossible.
  3) Discard N bytes on very first initialization only (i.e. don't
  discard on re-stir).
  4) Reduce N from 1024 to 512 as really suggested in the
  "(Not So) Random Shuffles of RC4" paper:
  http://research.microsoft.com/users/mironov/papers/rc4full.pdf
  
  Revision  Changes    Path
  1.17      +17 -10    src/lib/libc/gen/arc4random.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807212157.m6LLviBJ095778>