Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
CryptoRandom.cpp
Go to the documentation of this file.
1
/*
2
* This file is part of Project SkyFire https://www.projectskyfire.org.
3
* See LICENSE.md file for Copyright information
4
*/
5
6
#include "
CryptoRandom.h
"
7
#include "
Errors.h
"
8
#include <openssl/rand.h>
9
10
void
SkyFire::Crypto::GetRandomBytes
(
uint8
* buf,
size_t
len)
11
{
12
int
result = RAND_bytes(buf, len);
13
ASSERT
(result == 1);
14
}
CryptoRandom.h
uint8
std::uint8_t uint8
Definition
Define.h:79
Errors.h
ASSERT
#define ASSERT
Definition
Errors.h:29
SkyFire::Crypto::GetRandomBytes
std::array< uint8, S > GetRandomBytes()
Definition
CryptoRandom.h:23
src
server
shared
Cryptography
CryptoRandom.cpp
Generated on
for Project SkyFire Core by
1.17.0