[][src]Module indradb::util

Utility functions.

Functions

generate_random_secret

Generates a securely random string consisting of letters (uppercase and lowercase) and digits.

generate_temporary_path

Gets the path to a file or directory within the temporary directory, in a platform-independent manner. Note that this will panic if the path cannot be formatted into UTF-8.

generate_uuid_v1

Generates a UUID v1. this utility method uses a shared context and node ID to help ensure generated UUIDs are unique.

nanos_since_epoch

Gets the number of nanoseconds since unix epoch for a given datetime.

next_uuid

Gets the next UUID that would occur after the given one.