1 uuid.inc public UuidCom::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 114
Handling of universally unique identifiers.

Class

UuidCom
UUID implementation using the Windows internal GUID extension.

Code

public function generate() {
  // Remove {} wrapper and make lower case to keep result consistent.
  return backdrop_strtolower(trim(com_create_guid(), '{}'));
}