RtlUniform function

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

Syntax

ULONG RtlUniform(
  PULONG Seed
);

Parameters

Seed

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

   
Target Platform Windows
Header winternl.h
DLL Ntdll.dll

See Also

CryptGenRandom