randombytes_into

Function randombytes_into 

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

randombytes_into() fills a buffer buf with random data.

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