Scroll to navigation

CryptGenRandom(3w) Wine API CryptGenRandom(3w)

NAME

CryptGenRandom (ADVAPI32.@)

SYNOPSIS

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

DESCRIPTION

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".
Oct 2012 Wine API