Skip to main content

Overview

The FHE library provides cryptographically secure random number generation that produces encrypted random values. The values are generated in encrypted form—no one can see the plaintext until it is explicitly decrypted.

Random Functions

Usage

Call FHE.allowThis() on random values if you need to store or use them later in your contract.