Browse Source

Don't describe random() as "better".

Remove the bug about rand() being faster.
Add a bug about historical implementations seeding very poorly.
OPENBSD_5_7
millert 10 years ago
parent
commit
99443b79b3
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      src/lib/libc/stdlib/random.3

+ 5
- 5
src/lib/libc/stdlib/random.3 View File

@ -25,9 +25,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" $OpenBSD: random.3,v 1.25 2014/07/18 06:20:36 jmc Exp $
.\" $OpenBSD: random.3,v 1.26 2014/11/25 17:40:38 millert Exp $
.\" .\"
.Dd $Mdocdate: July 18 2014 $
.Dd $Mdocdate: November 25 2014 $
.Dt RANDOM 3 .Dt RANDOM 3
.Os .Os
.Sh NAME .Sh NAME
@ -36,7 +36,7 @@
.Nm srandomdev , .Nm srandomdev ,
.Nm initstate , .Nm initstate ,
.Nm setstate .Nm setstate
.Nd better random number generator; routines for changing generators
.Nd pseudo-random number generator; routines for changing generators
.Sh SYNOPSIS .Sh SYNOPSIS
.In stdlib.h .In stdlib.h
.Ft long .Ft long
@ -186,5 +186,5 @@ functions appeared in
.Sh AUTHORS .Sh AUTHORS
.An Earl T. Cohen .An Earl T. Cohen
.Sh BUGS .Sh BUGS
About 2/3 the speed of
.Xr rand 3 .
The historical implementation used to have very weak seeding.
As a result, the random sequence did not vary much with the seed.

Loading…
Cancel
Save