Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
FastRandom Class Reference

Class for quickly deterministically creating new random values. We don't care about distribution much here. More...

#include <fuzzer.hpp>

Public Member Functions

 FastRandom (uint32_t seed)
 
uint32_t next ()
 
void reseed (uint32_t seed)
 

Private Attributes

uint32_t state
 

Detailed Description

Class for quickly deterministically creating new random values. We don't care about distribution much here.

Definition at line 63 of file fuzzer.hpp.

Constructor & Destructor Documentation

◆ FastRandom()

FastRandom::FastRandom ( uint32_t  seed)
inline

Definition at line 67 of file fuzzer.hpp.

Member Function Documentation

◆ next()

uint32_t FastRandom::next ( )
inline

Definition at line 68 of file fuzzer.hpp.

◆ reseed()

void FastRandom::reseed ( uint32_t  seed)
inline

Definition at line 75 of file fuzzer.hpp.

Member Data Documentation

◆ state

uint32_t FastRandom::state
private

Definition at line 64 of file fuzzer.hpp.


The documentation for this class was generated from the following file: