File: INSTALL

package info (click to toggle)
libmath-random-perl 0.71-5
  • links: PTS, VCS
  • area: non-free
  • in suites: jessie, jessie-kfreebsd
  • size: 364 kB
  • ctags: 187
  • sloc: perl: 1,623; ansic: 1,433; makefile: 10
file content (19 lines) | stat: -rw-r--r-- 991 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Beginning with version 0.68, two versions of the phrtsd routine are
available. If you want the new version, run 'perl Makefile.PL' as
usual. If you want the original version, run:

   perl Makefile.PL phrtsd_orig

The original version, which is the same as the phrtsd routine in the
original Fortran library, generates the same seed numbers for all
permutations of the same characters. For instance, 'abc', 'bca',
and 'cab' will all generate the same seeds. Some users find this
behavior surprising. Also, when Math::Random is loaded, it sets the
seeds from scalar(localtime), which will be a string like
'Mon Jun 26 15:45:12 2006'. Nine seconds later, however,
'Mon Jun 26 15:45:21 2006' will generate the very same seeds.

The new version uses an entirely different algorithm that will
generate different seeds for such strings. This should be suitable
for most applications, but the original version is still available
for those who need to reproduce the behavior of the Fortran randlib.