6 calls to Crypt::randomBytes()

Crypt::randomStringHashed in drupal/core/lib/Drupal/Component/Utility/Crypt.php
Generates a random, base-64 encoded, URL-safe, sha-256 hashed string.
CryptTest::testRandomBytes in drupal/core/tests/Drupal/Tests/Component/Utility/CryptTest.php
Tests \Drupal\Component\Utility\Crypt::randomBytes().
drupal_session_regenerate in drupal/core/includes/session.inc
Called when an anonymous user becomes authenticated or vice-versa.
Php::generate in drupal/core/lib/Drupal/Component/Uuid/Php.php
Implements Drupal\Component\Uuid\UuidInterface::generate().
PhpassHashedPassword::generateSalt in drupal/core/lib/Drupal/Core/Password/PhpassHashedPassword.php
Generates a random base 64-encoded salt prefixed with settings for the hash.
UpgradePathTestBase::prepareD8Session in drupal/core/modules/system/lib/Drupal/system/Tests/Upgrade/UpgradePathTestBase.php
Prepares the appropriate session for the release of Drupal being upgraded.