diff options
author | Tony Cook <tony@develop-help.com> | 2016-05-18 15:03:14 +1000 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2017-09-11 10:59:42 +1000 |
commit | f26b33bdaa1e41fbaf65c649a3208f081fa7571b (patch) | |
tree | 08ebd8b38bf725af3bd0a77465a1916229812aaf /perl.c | |
parent | 3ff4feb5bd226622062600b4127bb8c276c9d5ec (diff) | |
download | perl-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |