Function __global->get_secure_v1_guid

Definitions

sources/crypt.php

  • Get a secure v1 GUID using the site salt as the node.This should only be used for chronological non-sensitive data as the randomness is only applied to the clock sequence.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$time_at ?float No No Null N/A N/A Use the provided time in microtime format (null: current time)

Returns

  • The GUID
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get a secure v1 GUID using the site salt as the node.This should only be used for chronological non-sensitive data as the randomness is only applied to the clock sequence.
 *
 * @param  ?float $time_at Use the provided time in microtime format (null: current time)
 * @return string The GUID
 */

function get_secure_v1_guid(?float $time_at = null) : string