---
name: "RSAENH_CPGenRandom"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/RSAENH_CPGenRandom"
---

# RSAENH\_CPGenRandom(3w)

## NAME

**RSAENH\_CPGenRandom** (RSAENH.@)

## SYNOPSIS

BOOL RSAENH\_CPGenRandom\
  (\
   HCRYPTPROV *hProv*,\
   DWORD      *dwLen*,\
   BYTE\*      *pbBuffer*\
  )

## DESCRIPTION

Generate a random byte stream.

## PARAMS

*hProv* **\[In\]**  Key container that is used to generate random bytes.

*dwLen* **\[In\]**  Specifies the number of requested random data bytes.

*pbBuffer* **\[Out\]**  Random bytes will be stored here.

## RETURNS

**Success:** **TRUE**

**Failure:** **FALSE**

## IMPLEMENTATION

Not declared in a Wine header. The function is either undocumented, or missing from Wine.

Implemented in **"dlls/rsaenh/rsaenh.c"**.

Debug channel **"crypt"**.
