Bitcoin Core  27.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 "util.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]
 

Function Documentation

◆ rotl()

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

Definition at line 39 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 84 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 116 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 61 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 43 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 56 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 100 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 161 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 120 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 124 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 65 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 20 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_state

uint64_t secp256k1_test_state[4]
static

Definition at line 18 of file testrand_impl.h.