wtx 0.43.0

A collection of different transport implementations and related tools focused primarily on web technologies.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::rng::Rng;

/// Marker trait used to indicate that an [`Rng`] implementation is supposed to be
/// cryptographically secure.
#[cfg(feature = "rand-compat")]
pub trait CryptoRng: rand_core::CryptoRng + Rng {}

/// Marker trait used to indicate that an [`Rng`] implementation is supposed to be
/// cryptographically secure.
#[cfg(not(feature = "rand-compat"))]
pub trait CryptoRng: Rng {}