Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
random_fill

Fills the buffer supplied with cryptographically strong randomness. Uses the OS kernel API.

Synopsis
BOOST_AFIO_DECL void utils::random_fill(char * buffer, size_t bytes)
Parameters

Type

Concept

Name

Description

char *

buffer

A buffer to fill

size_t

bytes

How many bytes to fill

Header

#include <boost/afio/v2/afio.hpp>

Complexity

Whatever the system API takes.

Exception Model

Any error from the operating system.


PrevUpHomeNext