rings-core 0.20.0

Chord DHT implementation with ICE
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// Generate a protocol identifier through the active effect boundary.
///
/// Transactions and chunk-reassembly groups share this source so deterministic
/// simulations can replay every protocol identity exactly.
pub(crate) fn new_uuid() -> uuid::Uuid {
    #[cfg(all(test, feature = "dummy", not(target_family = "wasm")))]
    if let Some(uuid) = crate::simulation::next_uuid_override() {
        return uuid;
    }
    uuid::Uuid::new_v4()
}