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

pub fn randombytes_into(buf: &mut [u8])

randombytes_into() fills a buffer buf with random data.

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