sgx_rand_derive 0.9.8

Rust SGX SDK provides the ability to write Intel SGX applications in Rust Programming Language.
Documentation

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>());
}