//! Cryptographic random number generation.
use ffi;
use size_t;
use repeat;
/// `randombytes()` randomly generates size bytes of data.
///
/// THREAD SAFETY: `randombytes()` is thread-safe provided that you have
/// called `barnacl::init()` once before using any other function
/// from barnacl.
/// `randombytes_into()` fills a buffer `buf` with random data.
///
/// THREAD SAFETY: `randombytes_into()` is thread-safe provided that you have
/// called `barnacl::init()` once before using any other function
/// from barnacl.