//! Small helpers for minting persisted-record identifiers.
use Rng;
/// Eight hex characters (4 bytes) of cryptographic randomness, suitable
/// as a per-insert disambiguator on otherwise-deterministic record ids
/// (payload / spec / chain / candidate). Two replays of the same task
/// landing in the same millisecond now collide with probability ~2^-32
/// instead of certainty.