generateUuidV5

Generates a v5 UUID, which is a UUID based on SHA hashing. Sentinel uses v5 UUIDs for many of its identifiers to make them predictable.

This function is restricted. Use of this function in your script will require a manual review before it will execute on the Sentinel infrastructure.

Signatures

beacon.generateUuidV5(namespace, value);

Parameters

namespace

Another UUID to use as a namespace. This adds uniqueness so that the same value will not produce the same output if differing namespaces are used.

value

The input value used to generate the UUID.

Return Values

Type Notes
String A v5 UUID

Examples

Generate a v5 UUID

const uuid = beacon.generateUuidV5('b3153bc4-0985-49e8-bbe9-65e7131a4a44', 'Hello World');
beacon.debugPrint(uuid); // Outputs "a2996d78-5778-5298-8357-5f7bbe75a56f"

See Also