OGLplus  (0.59.0) a C++ wrapper for rendering APIs

random_bytes.hpp
Go to the documentation of this file.
1 #ifndef EAGINE_RANDOM_BYTES_HPP
9 #define EAGINE_RANDOM_BYTES_HPP
10 
11 #include "any_random_engine.hpp"
12 #include "span.hpp"
13 #include "types.hpp"
14 
15 namespace eagine {
16 
17 void fill_with_random_bytes(
18  span<byte> buffer,
19  any_random_engine<std::uint32_t> engine);
20 void fill_with_random_bytes(
21  span<byte> buffer,
22  any_random_engine<std::uint64_t> engine);
23 void fill_with_random_bytes(span<byte> buffer);
24 
25 } // namespace eagine
26 
27 #if !EAGINE_LINK_LIBRARY || defined(EAGINE_IMPLEMENTING_LIBRARY)
28 #include <eagine/random_bytes.inl>
29 #endif
30 
31 #endif // EAGINE_RANDOM_BYTES_HPP
Common code is placed in this namespace.
Definition: eagine.hpp:21

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).