CryptGenRandom(3w)

CryptGenRandom3w

Usage

BOOL CryptGenRandom
(
HCRYPTPROV hProv,
DWORD dwLen,
BYTE* pbBuffer
)

Overview

Fills a buffer with cryptographically random bytes.

Params

hProv [In] Handle of a CSP.

dwLen [In] Number of bytes to generate.

pbBuffer [In/Out] Buffer to contain random bytes.

Returns

Success: TRUE

Failure: FALSE.

Notes

pdBuffer must be at least dwLen bytes long.

Implementation

Declared in "wincrypt.h".

Implemented in "dlls/advapi32/crypt.c".

Debug channel "crypt".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.