Randomness

Randomness is native to the protocol and comes from a stream of cryptographically secure bits from the public keys. The randomness functions are:

  • TFHE.randEuint4()

  • TFHE.randEuint8()

  • TFHE.randEuint16()

  • TFHE.randEuint32()

  • TFHE.randEuint64()

Note that these randomness functions cannot be called within a view function, as they produce state-changing values.

Last updated