pub fn generate_ulid_bytes() -> [u8; 16]
Expand description

Returns new ULID bytes.

This function is a shortcut for Ulid::generate().into().

Example

let ulid_bytes = generate_ulid_bytes();

// a binary ulid has exactly 16 bytes
assert_eq!(ulid_bytes.len(), 16);