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

Breadcrumb

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

function RandomIdGenerator::fallbackAlgorithm

1 call to RandomIdGenerator::fallbackAlgorithm()
RandomIdGenerator::randomHex in vendor/open-telemetry/sdk/Trace/RandomIdGenerator.php
@psalm-suppress ArgumentTypeCoercion $hexLength is always a positive integer

File

vendor/open-telemetry/sdk/Trace/RandomIdGenerator.php, line 45

Class

RandomIdGenerator

Namespace

OpenTelemetry\SDK\Trace

Code

private function fallbackAlgorithm(int $hexLength) : string {
    return substr(str_shuffle(str_repeat('0123456789abcdef', $hexLength)), 1, $hexLength);
}

API Navigation

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