SystemPrng function
[SystemPrng is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, use BCryptGenRandom.]
The SystemPrng function retrieves a specified number of random bytes from the system random number generator.
Syntax
BOOL SystemPrng( _Out_ unsigned char pbRandomData, _In_ size_t cbRandomData );
Parameters
- pbRandomData [out]
-
A pointer to a buffer that receives the retrieved bytes.
- cbRandomData [in]
-
The number of bytes to retrieve.
Return value
Always returns TRUE.
Requirements
|
Minimum supported client |
Windows Vista with SP1 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
DLL |
|