RtlUniform - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H

//
// Random
//

NTSYSAPI
ULONG
NTAPI
RtlUniform(
    _Inout_ PULONG Seed
    );

#endif

View code on GitHub
// winternl.h

ULONG RtlUniform(
  [in, out] PULONG Seed
);
View the official Win32 API reference

NtDoc

This function is documented in Windows SDK.

Win32 API reference (nf-winternl-rtluniform)

RtlUniform function

Description

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

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.

See also

CryptGenRandom