2 // Copyright (c) 2017 James E. King III
4 // Distributed under the Boost Software License, Version 1.0.
5 // (See accompanying file LICENSE_1_0.txt or copy at
6 // https://www.boost.org/LICENSE_1_0.txt)
8 // "A Replacement Call for Random"
9 // https://man.openbsd.org/arc4random.3
19 class random_provider_base
22 //! Obtain entropy and place it into a memory location
23 //! \param[in] buf the location to write entropy
24 //! \param[in] siz the number of bytes to acquire
25 void get_random_bytes(void *buf, std::size_t siz)
27 arc4random_buf(buf, siz);