You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
526 B
31 lines
526 B
#include <nt.h>
|
|
#include <ntrtl.h>
|
|
#include <crypt.h>
|
|
#include <engine.h>
|
|
|
|
#include <nturtl.h>
|
|
|
|
#include <windows.h>
|
|
#include <randlib.h>
|
|
|
|
|
|
BOOLEAN
|
|
RtlGenRandom(
|
|
OUT PVOID RandomBuffer,
|
|
IN ULONG RandomBufferLength
|
|
)
|
|
{
|
|
#ifdef KMODE
|
|
return FALSE;
|
|
#else
|
|
|
|
return (BOOLEAN)NewGenRandom(
|
|
NULL,
|
|
0,
|
|
(unsigned char*)RandomBuffer,
|
|
RandomBufferLength
|
|
);
|
|
|
|
#endif
|
|
}
|
|
|