1Makerand(3)           User Contributed Perl Documentation          Makerand(3)
2
3
4

NAME

6       Crypt::Makerand - Perl extension for the truerand library
7

SYNOPSIS

9         use Crypt::Makerand;
10         $rand = Crypt::Makerand::trand32();
11

DESCRIPTION

13       Uses the truerand library to generate a random 32 bit number.
14
15       The basic idea here is that between clock "skew" and various hard-to-
16       predict OS event arrivals, counting a tight loop will yield a little
17       (maybe a third of a bit or so) of "good" randomness per interval clock
18       tick.  This seems to work well even on unloaded machines.  If there is
19       a human operator at the machine, you should augment truerand with other
20       measure, like keyboard event timing.
21
22       On server machines (e.g., when you need to generate a Diffie-Hellman
23       secret) truerand alone may be good enough.
24
25   Exportable functions
26         unsigned long trand32(void)
27

AUTHOR

29       The truerand library was developed by Matt Blaze, Jim Reeds, and Jack
30       Lacy. Copyright (c) 1992, 1994 AT&T.  This Perl extension was created
31       by Mark Cox, mjc@redhat.com, March 2001.
32

SEE ALSO

34       perl(1).
35
36
37
38perl v5.16.3                      2014-06-09                       Makerand(3)
Impressum