RtlUniform function

Generates a uniform random number using D.H. Lehmer's 1948 algorithm.

Syntax


ULONG RtlUniform(
  _Inout_ PULONG Seed
);

Parameters

Seed [in, out]

The seed value.

Return value

The function returns a random number uniformly distributed over [0..MAXLONG].

Remarks

This function has no associated import library. You must use the LoadLibrary and GetProcAddress functions to dynamically link to Ntdll.dll.

Requirements

Header

Winternl.h

DLL

Ntdll.dll

See also

CryptGenRandom

 

 

Show: