Project SkyFire Core
SkyFire 5.4.8 server core API documentation
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
11{
12 int result = RAND_bytes(buf, len);
13 ASSERT(result == 1);
14}
std::uint8_t uint8
Definition Define.h:79
#define ASSERT
Definition Errors.h:29
std::array< uint8, S > GetRandomBytes()