NAME

RtlUniform  (NTDLL.@)

SYNOPSIS

 ULONG RtlUniform
 (
  ULONG* seed
 )

DESCRIPTION

Generates a uniform random number.

PARAMS

seed [Out] The seed of the Random function.

RETURNS

It returns a random number uniformly distributed over [0..MAXLONG-1].

NOTES

Generates a uniform random number using a linear congruential generator.

DIFFERENCES

The native documentation states that the random number is uniformly distributed over [0..MAXLONG]. In reality the native function and our function return a random number uniformly distributed over [0..MAXLONG-1].

IMPLEMENTATION

Declared in "winternl.h". https://source.winehq.org/source/include/winternl.h

Implemented in "dlls/ntdll/rtl.c". https://source.winehq.org/source/dlls/ntdll/rtl.c

Debug channel "ntdll".


Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Apr 2024.