W3cubDocs

/Drupal 8

constant Random::MAXIMUM_TRIES

The maximum number of times name() and string() can loop.

This prevents infinite loops if the length of the random value is very small.

See also

\Drupal\Tests\Component\Utility\RandomTest

File

core/lib/Drupal/Component/Utility/Random.php, line 20

Class

Random
Defines a utility class for creating random data.

Namespace

Drupal\Component\Utility

Code

const MAXIMUM_TRIES = 100;

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Utility!Random.php/constant/Random::MAXIMUM_TRIES/8.1.x