Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit bac4b33

Browse files
author
Jamie Snape
committed
Fix random number generation during installation
1 parent 8238cbb commit bac4b33

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

core/controllers/InstallController.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,7 @@ public function step2Action()
173173
$options = array('allowModifications' => true);
174174
$applicationConfig = new Zend_Config_Ini(CORE_CONFIGS_PATH.'/application.ini', null, $options);
175175

176-
if (extension_loaded('openssl')) {
177-
$factory = new \RandomLib\Factory();
178-
$generator = $factory->getHighStrengthGenerator();
179-
$prefix = $generator->generateString(32);
180-
} else {
181-
$prefix = $this->Component->Random->generateString(32);
182-
}
183-
176+
$prefix = $this->Component->Random->generateString(32);
184177
$applicationConfig->global->password->prefix = $prefix;
185178
$applicationConfig->global->gravatar = $form->getValue('gravatar');
186179

0 commit comments

Comments
 (0)