DragonFly BSD
DragonFly commits List (threaded) for 2004-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 17 May 2004 00:35:56 -0700 (PDT)

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@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]