1 uuid.inc public UuidPecl::generate()

Generates a Universally Unique IDentifier (UUID).

Return value

A 32 byte integer represented as a hex string formatted with 4 hyphens.:

Overrides UuidInterface::generate

File

core/includes/uuid.inc, line 103
Handling of universally unique identifiers.

Class

UuidPecl
UUID implementation using the PECL extension.

Code

public function generate() {
  return uuid_create(UUID_TYPE_DEFAULT);
}