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

Breadcrumb

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

interface RandomGeneratorInterface

A random generator generates strings of random binary data

Hierarchy

  • interface \Ramsey\Uuid\Generator\RandomGeneratorInterface

Expanded class hierarchy of RandomGeneratorInterface

All classes that implement RandomGeneratorInterface

2 files declare their use of RandomGeneratorInterface
FeatureSet.php in vendor/ramsey/uuid/src/FeatureSet.php
UuidFactory.php in vendor/ramsey/uuid/src/UuidFactory.php

File

vendor/ramsey/uuid/src/Generator/RandomGeneratorInterface.php, line 20

Namespace

Ramsey\Uuid\Generator
View source
interface RandomGeneratorInterface {
    
    /**
     * Generates a string of randomized binary data
     *
     * @param int<1, max> $length The number of bytes of random binary data to generate
     *
     * @return string A binary string
     */
    public function generate(int $length) : string;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
RandomGeneratorInterface::generate public function Generates a string of randomized binary data 4

API Navigation

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