Bug 476594: [SECURITY] Calling srand() at startup time in mod_perl makes the same token be generated over and over

Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=justdave, a=mkanat


git-svn-id: svn://10.0.0.236/trunk@256062 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%bugzilla.org
2009-02-03 10:00:14 +00:00
parent 69486c53f1
commit b92fe16d40

View File

@@ -188,7 +188,7 @@ EOT
},
{
name => 'site_wide_secret',
default => generate_random_password(256),
default => sub { generate_random_password(256) },
desc => <<EOT
# This secret key is used by your installation for the creation and
# validation of encrypted tokens to prevent unsolicited changes,