Skip to content

Commit 043a0f5

Browse files
committed
Merge pull request #113 from ngse/patch-1
Fix integers used in mt_rand()
2 parents 2503a74 + 2ac7b67 commit 043a0f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/task/generator/sfGenerateAppTask.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ protected function execute($arguments = array(), $options = array())
118118

119119
if (true === $options['csrf-secret'])
120120
{
121-
$options['csrf-secret'] = sha1(mt_rand(111111111, 99999999).getmypid());
121+
$options['csrf-secret'] = sha1(mt_rand(11111111, 99999999).getmypid());
122122
}
123123

124124
// Set no_script_name value in settings.yml for production environment

0 commit comments

Comments
 (0)