Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Random.php

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;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal