Monero
Loading...
Searching...
No Matches
Macros | Functions | Variables
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)   #x
 
#define CONCAT(a, b, c)   a ## b ## c
 
#define GEN_NAME(x)   "AesGenerator" STR(x)
 
#define GEN_FUNC(x)   CONCAT(fillAes, x, x4)
 
#define TEST_SUITE(x)   CONCAT(bbattery_, 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 )   a ## b ## c

◆ GEN_FUNC

#define GEN_FUNC ( x)    CONCAT(fillAes, x, x4)

◆ GEN_NAME

#define GEN_NAME ( x)    "AesGenerator" STR(x)

◆ STR

#define STR ( x)    #x

◆ TEST_SUITE

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

Function Documentation

◆ aesGenBits()

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

◆ aesGenDouble()

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

◆ aesWriteState()

static void aesWriteState ( void * state)
static

◆ main()

int main ( int argc,
char ** argv )

Variable Documentation

◆ GeneratorCapacity

constexpr int GeneratorCapacity = GeneratorStateSize / sizeof(uint32_t)
constexpr

◆ GeneratorStateSize

constexpr int GeneratorStateSize = 64
constexpr