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 "include/winternl.h". gitlab.winehq.org/wine/wine/blob/master/include/winternl.h

Implemented in "dlls/ntdll/rtl.c". gitlab.winehq.org/wine/wine/blob/master/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 Nov 2024.