UuidV4Bytes
Generates a random version-4 UUID as raw bytes.
Module: Std::UUID
Signature
rux
func UuidV4Bytes() -> String;Returns
String — a 16-byte value holding the raw UUID bytes (with the version and variant bits set). Read the bytes with Data; the Length is always 16.
Description
Same generation as UuidV4, but returns the 16 binary bytes instead of the 36-character string. Convert to canonical text later with UuidToString.
WARNING
The randomness is not cryptographically secure — see the module overview.
Example
rux
import Std::UUID;
let raw = UUID::UuidV4Bytes(); // 16 bytes
let text = UUID::UuidToString(raw.Data() as *const uint8, raw.Length());See also
Std::UUID— module overviewUuidV4— the string formUuidToString— format the bytes