A version of this page is also available for
This function fills a buffer with random bytes.
BOOL CeGenRandom( DWORD dwLen, BYTE* pbBuffer );
[in] Specifies the number of bytes of random data to be generated.
[in, out] Pointer to the buffer that receives the random data. The buffer must be at least dwLen bytes in size. Optionally, the application can provide data in the buffer to use as an auxiliary random seed.
Nonzero indicates success. Zero indicates failure.
|Windows Embedded CE||Windows CE .NET 4.1 and later|
|Windows Mobile||Windows Mobile Version 5.0 and later|