mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 22:09:19 -07:00
16 lines
385 B
C
16 lines
385 B
C
|
// Copyright 2018 Dolphin Emulator Project
|
||
|
// Licensed under GPLv2+
|
||
|
// Refer to the license.txt file included.
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <cstddef>
|
||
|
|
||
|
#include "Common/CommonTypes.h"
|
||
|
|
||
|
namespace Common::Random
|
||
|
{
|
||
|
/// Fill `buffer` with random bytes using a cryptographically secure pseudo-random number generator.
|
||
|
void Generate(void* buffer, std::size_t size);
|
||
|
} // namespace Common::Random
|