[][src]Function rust_sodium::randombytes::randombytes

pub fn randombytes(size: usize) -> Vec<u8>

randombytes() randomly generates size bytes of data.

THREAD SAFETY: randombytes() is thread-safe provided that you have called rust_sodium::init() once before using any other function from rust_sodium.