mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[KSECDD]
Fix 64 bit compilation svn path=/trunk/; revision=63212
This commit is contained in:
parent
4857a9216f
commit
7c33407e96
1 changed files with 5 additions and 3 deletions
|
@ -31,11 +31,13 @@ KsecGenRandom(
|
|||
PVOID Buffer,
|
||||
SIZE_T Length)
|
||||
{
|
||||
LARGE_INTEGER TickCount;
|
||||
ULONG i, RandomValue;
|
||||
PULONG P;
|
||||
|
||||
/* Try to generate a more random seed */
|
||||
KsecRandomSeed ^= _rotl(KeTickCount.LowPart, (KsecRandomSeed % 23));
|
||||
KeQueryTickCount(&TickCount);
|
||||
KsecRandomSeed ^= _rotl(TickCount.LowPart, (KsecRandomSeed % 23));
|
||||
|
||||
P = Buffer;
|
||||
for (i = 0; i < Length / sizeof(ULONG); i++)
|
||||
|
@ -94,7 +96,7 @@ KsecGatherEntropyData(
|
|||
PTEB Teb;
|
||||
PPEB Peb;
|
||||
PWSTR String;
|
||||
ULONG ReturnLength;
|
||||
SIZE_T ReturnLength;
|
||||
NTSTATUS Status;
|
||||
|
||||
/* Query some generic values */
|
||||
|
@ -125,7 +127,7 @@ KsecGatherEntropyData(
|
|||
/* Update the MD4 context from the environment data */
|
||||
MD4Update(&Md4Context,
|
||||
(PUCHAR)Peb->ProcessParameters->Environment,
|
||||
(PUCHAR)String - (PUCHAR)Peb->ProcessParameters->Environment);
|
||||
(ULONG)((PUCHAR)String - (PUCHAR)Peb->ProcessParameters->Environment));
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue