Monero
Loading...
Searching...
No Matches
rng-tests.cpp File Reference
#include "unif01.h"
#include "bbattery.h"
#include "../aes_hash.hpp"
#include "../blake2/blake2.h"
#include "utility.hpp"
#include <cstdint>
Include dependency graph for rng-tests.cpp:

Macros

#define STR(x)
#define CONCAT(a, b, c)
#define GEN_NAME(x)
#define GEN_FUNC(x)
#define TEST_SUITE(x)

Functions

static unsigned long aesGenBits (void *param, void *state)
static double aesGenDouble (void *param, void *state)
static void aesWriteState (void *state)
int main (int argc, char **argv)

Variables

constexpr int GeneratorStateSize = 64
constexpr int GeneratorCapacity = GeneratorStateSize / sizeof(uint32_t)

Macro Definition Documentation

◆ CONCAT

#define CONCAT ( a,
b,
c )
Value:
a ## b ## c
cryptonote::block b
Definition block.cpp:40
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
Definition pointer.h:1124

◆ GEN_FUNC

#define GEN_FUNC ( x)
Value:
CONCAT(fillAes, x, x4)
#define CONCAT(a, b, c)
Definition rng-tests.cpp:34

◆ GEN_NAME

#define GEN_NAME ( x)
Value:
"AesGenerator" STR(x)
#define STR(s)
Definition minissdpd.c:1170

◆ STR

#define STR ( x)
Value:
#x

◆ TEST_SUITE

#define TEST_SUITE ( x)
Value:
CONCAT(bbattery_, x,)

Function Documentation

◆ aesGenBits()

unsigned long aesGenBits ( void * param,
void * state )
static

◆ aesGenDouble()

double aesGenDouble ( void * param,
void * state )
static

◆ aesWriteState()

void aesWriteState ( void * state)
static

◆ main()

int main ( int argc,
char ** argv )

Variable Documentation

◆ GeneratorCapacity

int GeneratorCapacity = GeneratorStateSize / sizeof(uint32_t)
constexpr

◆ GeneratorStateSize

int GeneratorStateSize = 64
constexpr