cvs commit: src/lib/libc/stdlib rand.3 rand.c

Matthew Dillon dillon at crater.dragonflybsd.org
Mon May 17 00:36:24 PDT 2004


dillon      2004/05/17 00:35:56 PDT

DragonFly src repository

  Modified files:
    lib/libc/stdlib      rand.3 rand.c 
  Log:
  Bring in a better seeding and random number generation algorithm from
  FreeBSD for the (old) rand() API.  Add sranddev() to the library and clean
  up the manual page.  Note that we are currently using /dev/urandom to
  generate the seed to avoid boot-time blocking issues.
  
  Submitted-by: "William M. Grim" <wgrim at xxxxxxxx>
  Reviewed by: Joerg Sonnenberger and others
  
  Revision  Changes    Path
  1.3       +17 -4     src/lib/libc/stdlib/rand.3
  1.3       +78 -7     src/lib/libc/stdlib/rand.c


http://www.dragonflybsd.org/cvsweb/src/lib/libc/stdlib/rand.3.diff?r1=1.2&r2=1.3&f=h
http://www.dragonflybsd.org/cvsweb/src/lib/libc/stdlib/rand.c.diff?r1=1.2&r2=1.3&f=h





More information about the Commits mailing list