diff --git a/core/includes/common.inc b/core/includes/common.inc index aea8529..f7dde32 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -4821,9 +4821,9 @@ function drupal_get_hash_salt() { * The private key. */ function drupal_get_private_key() { - if (!($key = variable_get('drupal_private_key', 0))) { + if (!($key = state()->get('drupal_private_key'))) { $key = drupal_hash_base64(drupal_random_bytes(55)); - variable_set('drupal_private_key', $key); + state()->set('drupal_private_key', $key); } return $key; }