Alexandre Julliard : ntdll: Partially implement RtlRandomEx().
Alexandre Julliard
julliard at winehq.org
Fri Oct 26 14:23:56 CDT 2018
Module: wine
Branch: master
Commit: 72662305b3e6807ea6d01f320581eae29d5d8a37
URL: https://source.winehq.org/git/wine.git/?a=commit;h=72662305b3e6807ea6d01f320581eae29d5d8a37
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri Oct 26 13:07:15 2018 +0200
ntdll: Partially implement RtlRandomEx().
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 818ae00..87b5d70 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 d3a4e7d..e80aa5e 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 422d575..c10fa2f 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
More information about the wine-cvs
mailing list