Skip to main content

Module ambient

Module ambient 

Source
Expand description

The system implementations of capsule-core’s injected [Clock] and [Rng].

capsule-core reads no clock and draws no identifier itself; every UUIDv7 it mints comes from an [IdSource] its caller builds. This module is where a client’s real wall clock and the OS random source enter: system_ids is the source every production call in this crate passes. See [capsule_core] for the stateless core’s rule.

Structs§

OsRng
The OS random source, through capsule-core’s CSPRNG.
SystemClock
The system wall clock.

Functions§

system_ids
An identifier source over the SystemClock and OsRng.