summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 8e04d51ff..ec6c7c021 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -419,7 +419,7 @@ function system_install() {
->execute();
// Populate the cron key variable.
- $cron_key = md5(mt_rand());
+ $cron_key = drupal_hash_base64(drupal_random_bytes(55));
variable_set('cron_key', $cron_key);
}
@@ -1557,7 +1557,7 @@ function system_update_7000() {
* Generate a cron key and save it in the variables table.
*/
function system_update_7001() {
- variable_set('cron_key', md5(mt_rand()));
+ variable_set('cron_key', drupal_hash_base64(drupal_random_bytes(55)));
}
/**