AuroraRuntime/Source/Extensions/LTC/LTC.cpp

18 lines
428 B
C++
Raw Normal View History

2021-06-27 21:25:29 +00:00
/***
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: LTC.cpp
Date: 2021-6-12
Author: Reece
***/
2021-09-30 14:57:41 +00:00
#include <Source/RuntimeInternal.hpp>
2021-06-27 21:25:29 +00:00
#include "LTC.hpp"
extern "C"
{
AUKN_SYM unsigned long rng_get_bytes(unsigned char *out, unsigned long outlen, void (*callback)(void))
{
Aurora::RNG::ReadSecureRNG(AuMemoryViewWrite { out, outlen });
2021-06-27 21:25:29 +00:00
return outlen;
}
}