CeGenRandom (Compact 2013)

3/26/2014

This function fills a buffer with random bytes.

Syntax

BOOL CeGenRandom(
  DWORD dwLen, 
  BYTE* pbBuffer 
);

Parameters

  • dwLen
    [in] Specifies the number of bytes of random data to be generated.
  • pbBuffer
    [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.

Return Value

Nonzero indicates success. Zero indicates failure.

Requirements

Header

winbase.h

Library

coredll.lib

See Also

Reference

File I/O Functions

Other Resources

CryptGenRandom
IOCTL_HAL_GET_RANDOM_SEED