Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Mar 2001 08:24:41 +0000
From:      Tony Finch <dot@dotat.at>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   gnu/25794: [PATCH] make perl use a decent random number generator
Message-ID:  <E14d6aH-000EIY-00@hand.dotat.at>

next in thread | raw e-mail | index | archive | help

>Number:         25794
>Category:       gnu
>Synopsis:       [PATCH] make perl use a decent random number generator
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 14 00:30:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Tony Finch <dot@dotat.at>
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
Covalent Technologies, Inc.
>Environment:

FreeBSD hand.dotat.at 4.2-STABLE FreeBSD 4.2-STABLE #4: Wed Feb 21 00:26:12 GMT 2001     fanf@hand.dotat.at:/FreeBSD/obj/FreeBSD/releng4/sys/DELL-Latitude-CSx  i386

sources cvsupped Wed Mar 14 03:45:12 GMT 2001

>Description:

perl uses rand(3) as its random number generator, which is quite
frankly not the best of the bunch.

>How-To-Repeat:


>Fix:


Index: config.SH-elf.alpha
===================================================================
RCS file: /home/ncvs/src/gnu/usr.bin/perl/libperl/config.SH-elf.alpha,v
retrieving revision 1.16.2.1
diff -u -r1.16.2.1 config.SH-elf.alpha
--- config.SH-elf.alpha	2000/10/31 08:05:27	1.16.2.1
+++ config.SH-elf.alpha	2001/03/14 08:20:42
@@ -585,8 +585,8 @@
 zip='zip'
 # Configure command line arguments.
 config_arg0='Configure'
-config_args='-Dprefix=/usr -Darchlib=/usr/libdata/perl/5.00503/mach -Dprivlib=/usr/libdata/perl/5.00503 -Dsitearch=/usr/local/lib/perl5/site_perl/5.005/alpha-freebsd -Dsitelib=/usr/local/lib/perl5/site_perl/5.005 -Dman1dir=/usr/local/man/man1 -Dman3dir=/usr/share/perl/man/man3 -Ulocincpth= -Uloclibpth= -Dpager=/usr/bin/more'
-config_argc=10
+config_args='-Dprefix=/usr -Darchlib=/usr/libdata/perl/5.00503/mach -Dprivlib=/usr/libdata/perl/5.00503 -Dsitearch=/usr/local/lib/perl5/site_perl/5.005/alpha-freebsd -Dsitelib=/usr/local/lib/perl5/site_perl/5.005 -Dman1dir=/usr/local/man/man1 -Dman3dir=/usr/share/perl/man/man3 -Ulocincpth= -Uloclibpth= -Dpager=/usr/bin/more -Dmy_rand=random -Dmy_sran=srandom'
+config_argc=12
 config_arg1='-Dprefix=/usr'
 config_arg2='-Darchlib=/usr/libdata/perl/5.00503/mach'
 config_arg3='-Dprivlib=/usr/libdata/perl/5.00503'
@@ -597,6 +597,8 @@
 config_arg8='-Ulocincpth='
 config_arg9='-Uloclibpth='
 config_arg10='-Dpager=/usr/bin/more'
+config_arg11='-Dmy_rand=random'
+config_arg12='-Dmy_srand=srandom'
 PATCHLEVEL=5
 SUBVERSION=3
 CONFIG=true
Index: config.SH-elf.i386
===================================================================
RCS file: /home/ncvs/src/gnu/usr.bin/perl/libperl/config.SH-elf.i386,v
retrieving revision 1.15.2.1
diff -u -r1.15.2.1 config.SH-elf.i386
--- config.SH-elf.i386	2000/10/31 08:05:27	1.15.2.1
+++ config.SH-elf.i386	2001/03/14 03:17:27
@@ -585,8 +585,8 @@
 zip='zip'
 # Configure command line arguments.
 config_arg0='Configure'
-config_args='-Dprefix=/usr -Darchlib=/usr/libdata/perl/5.00503/mach -Dprivlib=/usr/libdata/perl/5.00503 -Dsitearch=/usr/local/lib/perl5/site_perl/5.005/i386-freebsd -Dsitelib=/usr/local/lib/perl5/site_perl/5.005 -Dman1dir=/usr/local/man/man1 -Dman3dir=/usr/share/perl/man/man3 -Ulocincpth= -Uloclibpth= -Dpager=/usr/bin/more'
-config_argc=10
+config_args='-Dprefix=/usr -Darchlib=/usr/libdata/perl/5.00503/mach -Dprivlib=/usr/libdata/perl/5.00503 -Dsitearch=/usr/local/lib/perl5/site_perl/5.005/i386-freebsd -Dsitelib=/usr/local/lib/perl5/site_perl/5.005 -Dman1dir=/usr/local/man/man1 -Dman3dir=/usr/share/perl/man/man3 -Ulocincpth= -Uloclibpth= -Dpager=/usr/bin/more -Dmy_rand=random -Dmy_sran=srandom'
+config_argc=12
 config_arg1='-Dprefix=/usr'
 config_arg2='-Darchlib=/usr/libdata/perl/5.00503/mach'
 config_arg3='-Dprivlib=/usr/libdata/perl/5.00503'
@@ -597,6 +597,8 @@
 config_arg8='-Ulocincpth='
 config_arg9='-Uloclibpth='
 config_arg10='-Dpager=/usr/bin/more'
+config_arg11='-Dmy_rand=random'
+config_arg12='-Dmy_srand=srandom'
 PATCHLEVEL=5
 SUBVERSION=3
 CONFIG=true
Index: config.SH-threads-elf.alpha
===================================================================
RCS file: /home/ncvs/src/gnu/usr.bin/perl/libperl/config.SH-threads-elf.alpha,v
retrieving revision 1.2.2.1
diff -u -r1.2.2.1 config.SH-threads-elf.alpha
--- config.SH-threads-elf.alpha	2000/10/31 08:05:27	1.2.2.1
+++ config.SH-threads-elf.alpha	2001/03/14 08:20:25
@@ -585,8 +585,8 @@
 zip='zip'
 # Configure command line arguments.
 config_arg0='Configure'
-config_args='-Dprefix=/usr -Darchlib=/usr/libdata/perl/5.00503/mach -Dprivlib=/usr/libdata/perl/5.00503 -Dsitearch=/usr/local/lib/perl5/site_perl/5.005/alpha-freebsd -Dsitelib=/usr/local/lib/perl5/site_perl/5.005 -Dman1dir=/usr/local/man/man1 -Dman3dir=/usr/share/perl/man/man3 -Ulocincpth= -Uloclibpth= -Dpager=/usr/bin/more'
-config_argc=10
+config_args='-Dprefix=/usr -Darchlib=/usr/libdata/perl/5.00503/mach -Dprivlib=/usr/libdata/perl/5.00503 -Dsitearch=/usr/local/lib/perl5/site_perl/5.005/alpha-freebsd -Dsitelib=/usr/local/lib/perl5/site_perl/5.005 -Dman1dir=/usr/local/man/man1 -Dman3dir=/usr/share/perl/man/man3 -Ulocincpth= -Uloclibpth= -Dpager=/usr/bin/more -Dmy_rand=random -Dmy_sran=srandom'
+config_argc=12
 config_arg1='-Dprefix=/usr'
 config_arg2='-Darchlib=/usr/libdata/perl/5.00503/mach'
 config_arg3='-Dprivlib=/usr/libdata/perl/5.00503'
@@ -597,6 +597,8 @@
 config_arg8='-Ulocincpth='
 config_arg9='-Uloclibpth='
 config_arg10='-Dpager=/usr/bin/more'
+config_arg11='-Dmy_rand=random'
+config_arg12='-Dmy_srand=srandom'
 PATCHLEVEL=5
 SUBVERSION=3
 CONFIG=true
Index: config.SH-threads-elf.i386
===================================================================
RCS file: /home/ncvs/src/gnu/usr.bin/perl/libperl/config.SH-threads-elf.i386,v
retrieving revision 1.2.2.1
diff -u -r1.2.2.1 config.SH-threads-elf.i386
--- config.SH-threads-elf.i386	2000/10/31 08:05:27	1.2.2.1
+++ config.SH-threads-elf.i386	2001/03/14 08:20:32
@@ -587,8 +587,8 @@
 zip='zip'
 # Configure command line arguments.
 config_arg0='Configure'
-config_args='-Dprefix=/usr -Darchlib=/usr/libdata/perl/5.00503/mach -Dprivlib=/usr/libdata/perl/5.00503 -Dsitearch=/usr/local/lib/perl5/site_perl/5.005/i386-freebsd -Dsitelib=/usr/local/lib/perl5/site_perl/5.005 -Dman1dir=/usr/local/man/man1 -Dman3dir=/usr/share/perl/man/man3 -Ulocincpth= -Uloclibpth= -Dpager=/usr/bin/more'
-config_argc=10
+config_args='-Dprefix=/usr -Darchlib=/usr/libdata/perl/5.00503/mach -Dprivlib=/usr/libdata/perl/5.00503 -Dsitearch=/usr/local/lib/perl5/site_perl/5.005/i386-freebsd -Dsitelib=/usr/local/lib/perl5/site_perl/5.005 -Dman1dir=/usr/local/man/man1 -Dman3dir=/usr/share/perl/man/man3 -Ulocincpth= -Uloclibpth= -Dpager=/usr/bin/more -Dmy_rand=random -Dmy_sran=srandom'
+config_argc=12
 config_arg1='-Dprefix=/usr'
 config_arg2='-Darchlib=/usr/libdata/perl/5.00503/mach'
 config_arg3='-Dprivlib=/usr/libdata/perl/5.00503'
@@ -599,6 +599,8 @@
 config_arg8='-Ulocincpth='
 config_arg9='-Uloclibpth='
 config_arg10='-Dpager=/usr/bin/more'
+config_arg11='-Dmy_rand=random'
+config_arg12='-Dmy_srand=srandom'
 PATCHLEVEL=5
 SUBVERSION=3
 CONFIG=true
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E14d6aH-000EIY-00>