From 72662305b3e6807ea6d01f320581eae29d5d8a37 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 26 Oct 2018 13:07:15 +0200 Subject: [PATCH] ntdll: Partially implement RtlRandomEx(). Signed-off-by: Alexandre Julliard --- dlls/ntdll/ntdll.spec | 2 +- dlls/ntdll/rtl.c | 9 +++++++++ dlls/ntoskrnl.exe/ntoskrnl.exe.spec | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/dlls/ntdll/ntdll.spec b/dlls/ntdll/ntdll.spec index 818ae0090cf..87b5d7078f6 100644 --- a/dlls/ntdll/ntdll.spec +++ b/dlls/ntdll/ntdll.spec @@ -839,7 +839,7 @@ @ stdcall -norelay RtlRaiseException(ptr) @ stdcall RtlRaiseStatus(long) @ stdcall RtlRandom(ptr) -@ stub RtlRandomEx +@ stdcall RtlRandomEx(ptr) @ stdcall RtlReAllocateHeap(long long ptr long) @ stub RtlReadMemoryStream @ stub RtlReadOutOfProcessMemoryStream diff --git a/dlls/ntdll/rtl.c b/dlls/ntdll/rtl.c index d3a4e7d6f2d..e80aa5e3247 100644 --- a/dlls/ntdll/rtl.c +++ b/dlls/ntdll/rtl.c @@ -753,6 +753,15 @@ ULONG WINAPI RtlRandom (PULONG seed) /************************************************************************* + * RtlRandomEx [NTDLL.@] + */ +ULONG WINAPI RtlRandomEx( ULONG *seed ) +{ + WARN( "semi-stub: should use a different algorithm\n" ); + return RtlRandom( seed ); +} + +/************************************************************************* * RtlAreAllAccessesGranted [NTDLL.@] * * Check if all desired accesses are granted diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec index 422d575926b..c10fa2f98f0 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec +++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec @@ -1144,7 +1144,7 @@ @ stdcall RtlQueryTimeZoneInformation(ptr) @ stdcall -norelay RtlRaiseException(ptr) @ stdcall RtlRandom(ptr) -@ stub RtlRandomEx +@ stdcall RtlRandomEx(ptr) @ stub RtlRealPredecessor @ stub RtlRealSuccessor @ stub RtlRemoveUnicodePrefix -- 2.11.4.GIT