Files
2026-06-01 12:46:52 +02:00

21 lines
258 B
C++

#include <openssl/rand.h>
#include "../../include/cipher/XSSL_Random.h"
void XSSL_InitRandomSeed()
{
RAND_screen();
}
bool XSSL_GetRandomBytes( unsigned char* pBuf, int nSize )
{
if( !RAND_bytes( pBuf, nSize ) )
{
return false;
}
return true;
}