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

Breadcrumb

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

function RandomLibAdapter::generate

Overrides RandomGeneratorInterface::generate

File

vendor/ramsey/uuid/src/Generator/RandomLibAdapter.php, line 52

Class

RandomLibAdapter
RandomLibAdapter generates strings of random binary data using the paragonie/random-lib library

Namespace

Ramsey\Uuid\Generator

Code

public function generate(int $length) : string {
    return $this->generator
        ->generate($length);
}

API Navigation

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