[#InsecureRandomContext-randbytes-0b] = xref:InsecureRandomContext.adoc[InsecureRandomContext]::randbytes :relfileprefix: ../ :mrdocs: Generate fixed‐size random bytes. == Synopsis Declared in `<random.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< size_t N, xref:BasicByte.adoc[BasicByte] B = std::byte> std::array<B, N> randbytes() noexcept; ---- == Return Value An array of `N` random bytes. [.small]#Created with https://www.mrdocs.com[MrDocs]#