Added RtlGenRandom result debug.

This commit is contained in:
Nemirtingas 2019-07-14 22:54:06 +02:00
parent ba23e904ad
commit 8751d4e279

View File

@ -64,8 +64,8 @@ bool _trace(const char* format, ...)
static void
randombytes(char * const buf, const size_t size)
{
RtlGenRandom((PVOID) buf, (ULONG) size);
BOOLEAN res = RtlGenRandom((PVOID) buf, (ULONG) size);
PRINT_DEBUG("RtlGenRandom result: %s\n", (res ? "TRUE" : "FALSE"));
}
std::string get_env_variable(std::string name)