A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
uuid.cc File Reference
#include "a11/uuid.h"
#include <algorithm>
#include <cstdint>
#include <string>
#include <absl/random/random.h>
#include <absl/strings/str_format.h>

Namespaces

namespace  a11
 

Functions

std::uint64_t a11::RandomUint64 ()
 64 random bits from a thread-local generator.
 
std::string a11::NewUuid ()
 Generate a random RFC 4122 version 4 UUID in canonical text form.
 
std::string a11::NewStreamId (std::string_view prefix="")
 Generate a stream identifier: prefix and 128 random bits as hex.
 
std::string a11::NewShortId (int hex_digits=12)
 Generate a short random identifier as lowercase hexadecimal.