[][src]Trait bluetooth_mesh::random::Randomizable

pub trait Randomizable: Sized {
    fn random_secure() -> Self;

    fn random() -> Self { ... }
}

Required methods

fn random_secure() -> Self

Generates and returns a cryptographically secure random T.

Loading content...

Provided methods

fn random() -> Self

Generates and returns a random T. Currently essentially just an alias for rand::random Assume random to be not secure! Even though random could use a cryptographically secure random number generator behind the scenes, use random_secure if you need crypto-random.

Loading content...

Implementors

impl Randomizable for AppKey[src]

impl Randomizable for DevKey[src]

impl Randomizable for Key[src]

impl Randomizable for NetKey[src]

impl<T> Randomizable for T where
    Standard: Distribution<T>, 
[src]

Loading content...