Crate sgx_rand_derive

Source
Expand description

Support for #[derive(Rand)]

Note

TcsPolicy must be Bound.

§Examples

extern crate sgx_rand;
#[macro_use]
extern crate sgx_rand_derive;

#[derive(Rand, Debug)]
struct MyStruct {
    a: i32,
    b: u32,
}

fn main() {
    println!("{:?}", sgx_rand::random::<MyStruct>());
}

Derive Macros§

Rand