summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2016-05-18 15:03:14 +1000
committerTony Cook <tony@develop-help.com>2017-09-11 10:59:42 +1000
commitf26b33bdaa1e41fbaf65c649a3208f081fa7571b (patch)
tree08ebd8b38bf725af3bd0a77465a1916229812aaf /perl.c
parent3ff4feb5bd226622062600b4127bb8c276c9d5ec (diff)
downloadperl-f26b33bdaa1e41fbaf65c649a3208f081fa7571b.tar.gz
(perl #127663) create a separate random source for internal use
and use it to initialize hash randomization and to innoculate against quadratic behaviour in pp_sort
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index a3f8ac367d..8046013992 100644
--- a/perl.c
+++ b/perl.c
@@ -261,6 +261,8 @@ perl_construct(pTHXx)
init_constants();
+ Perl_drand48_init_r(&PL_internal_random_state, seed());
+
SvREADONLY_on(&PL_sv_placeholder);
SvREFCNT(&PL_sv_placeholder) = SvREFCNT_IMMORTAL;