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

Breadcrumb

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

function DceSecurityGeneratorInterface::generate

Generate a binary string from a local domain, local identifier, node ID, clock sequence, and current time

Parameters

int $localDomain The local domain to use when generating bytes,: according to DCE Security

IntegerObject|null $localIdentifier The local identifier for the: given domain; this may be a UID or GID on POSIX systems, if the local domain is person or group, or it may be a site-defined identifier if the local domain is org

Hexadecimal|null $node A 48-bit number representing the hardware: address

int|null $clockSeq A 14-bit number used to help avoid duplicates: that could arise when the clock is set backwards in time or if the node ID changes

Return value

string A binary string

1 method overrides DceSecurityGeneratorInterface::generate()
DceSecurityGenerator::generate in vendor/ramsey/uuid/src/Generator/DceSecurityGenerator.php
Generate a binary string from a local domain, local identifier, node ID, clock sequence, and current time

File

vendor/ramsey/uuid/src/Generator/DceSecurityGeneratorInterface.php, line 47

Class

DceSecurityGeneratorInterface
A DCE Security generator generates strings of binary data based on a local domain, local identifier, node ID, clock sequence, and the current time

Namespace

Ramsey\Uuid\Generator

Code

public function generate(int $localDomain, ?IntegerObject $localIdentifier = null, ?Hexadecimal $node = null, ?int $clockSeq = null) : string;

API Navigation

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