1Makerand(3) User Contributed Perl Documentation Makerand(3)
2
3
4
6 Crypt::Makerand - Perl extension for the truerand library
7
9 use Crypt::Makerand;
10 $rand = Crypt::Makerand::trand32();
11
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
27 unsigned long trand32(void)
28
30 The truerand library was developed by Matt Blaze, Jim Reeds, and Jack
31 Lacy. Copyright (c) 1992, 1994 AT&T. This Perl extension was created
32 by Mark Cox, mjc@redhat.com, March 2001.
33
35 perl(1).
36
37
38
39perl v5.8.8 2007-03-01 Makerand(3)