Compartir a través de


CeGenRandom (Windows CE 5.0)

Send Feedback

This function fills a buffer with random bytes.

BOOL CeGenRandom(DWORDdwLen,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 Values

If the function succeeds, the return value is nonzero. If the function fails, the return value is zero.

Requirements

OS Versions: Windows CE .NET 4.1 and later.
Header: Winbase.h
Link Library: Coredll.lib.

See Also

CryptGenRandom | IOCTL_HAL_GET_RANDOM_SEED

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.