Bitcoin Core  24.99.0
P2P Digital Currency
Functions | Variables
testrand_impl.h File Reference
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "testrand.h"
#include "hash.h"
Include dependency graph for testrand_impl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static SECP256K1_INLINE void secp256k1_testrand_seed (const unsigned char *seed16)
 
static SECP256K1_INLINE uint64_t rotl (const uint64_t x, int k)
 
static SECP256K1_INLINE uint64_t secp256k1_testrand64 (void)
 
static SECP256K1_INLINE uint64_t secp256k1_testrand_bits (int bits)
 
static SECP256K1_INLINE uint32_t secp256k1_testrand32 (void)
 
static uint32_t secp256k1_testrand_int (uint32_t range)
 
static void secp256k1_testrand256 (unsigned char *b32)
 
static void secp256k1_testrand_bytes_test (unsigned char *bytes, size_t len)
 
static void secp256k1_testrand256_test (unsigned char *b32)
 
static void secp256k1_testrand_flip (unsigned char *b, size_t len)
 
static void secp256k1_testrand_init (const char *hexseed)
 
static void secp256k1_testrand_finish (void)
 

Variables

static uint64_t secp256k1_test_state [4]
 
static uint64_t secp256k1_test_rng_integer
 
static int secp256k1_test_rng_integer_bits_left = 0
 

Function Documentation

◆ rotl()

static SECP256K1_INLINE uint64_t rotl ( const uint64_t  x,
int  k 
)
static

Definition at line 41 of file testrand_impl.h.

Here is the caller graph for this function:

◆ secp256k1_testrand256()

static void secp256k1_testrand256 ( unsigned char *  b32)
static

Definition at line 114 of file testrand_impl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_testrand256_test()

static void secp256k1_testrand256_test ( unsigned char *  b32)
static

Definition at line 146 of file testrand_impl.h.

Here is the call graph for this function:

◆ secp256k1_testrand32()

static SECP256K1_INLINE uint32_t secp256k1_testrand32 ( void  )
static

Definition at line 71 of file testrand_impl.h.

Here is the call graph for this function:

◆ secp256k1_testrand64()

static SECP256K1_INLINE uint64_t secp256k1_testrand64 ( void  )
static

Definition at line 45 of file testrand_impl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_testrand_bits()

static SECP256K1_INLINE uint64_t secp256k1_testrand_bits ( int  bits)
static

Definition at line 58 of file testrand_impl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_testrand_bytes_test()

static void secp256k1_testrand_bytes_test ( unsigned char *  bytes,
size_t  len 
)
static

Definition at line 130 of file testrand_impl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_testrand_finish()

static void secp256k1_testrand_finish ( void  )
static

Definition at line 191 of file testrand_impl.h.

Here is the call graph for this function:

◆ secp256k1_testrand_flip()

static void secp256k1_testrand_flip ( unsigned char *  b,
size_t  len 
)
static

Definition at line 150 of file testrand_impl.h.

Here is the call graph for this function:

◆ secp256k1_testrand_init()

static void secp256k1_testrand_init ( const char *  hexseed)
static

Definition at line 154 of file testrand_impl.h.

Here is the call graph for this function:

◆ secp256k1_testrand_int()

static uint32_t secp256k1_testrand_int ( uint32_t  range)
static

Definition at line 75 of file testrand_impl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ secp256k1_testrand_seed()

static SECP256K1_INLINE void secp256k1_testrand_seed ( const unsigned char *  seed16)
static

Definition at line 21 of file testrand_impl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ secp256k1_test_rng_integer

uint64_t secp256k1_test_rng_integer
static

Definition at line 18 of file testrand_impl.h.

◆ secp256k1_test_rng_integer_bits_left

int secp256k1_test_rng_integer_bits_left = 0
static

Definition at line 19 of file testrand_impl.h.

◆ secp256k1_test_state

uint64_t secp256k1_test_state[4]
static

Definition at line 17 of file testrand_impl.h.