Leaked source code of windows server 2003
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

  1. #include <nt.h>
  2. #include <ntrtl.h>
  3. #include <crypt.h>
  4. #include <engine.h>
  5. #include <nturtl.h>
  6. #include <windows.h>
  7. #include <randlib.h>
  8. BOOLEAN
  9. RtlGenRandom(
  10. OUT PVOID RandomBuffer,
  11. IN ULONG RandomBufferLength
  12. )
  13. {
  14. #ifdef KMODE
  15. return FALSE;
  16. #else
  17. return (BOOLEAN)NewGenRandom(
  18. NULL,
  19. 0,
  20. (unsigned char*)RandomBuffer,
  21. RandomBufferLength
  22. );
  23. #endif
  24. }