Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
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 testrand_seed (const unsigned char *seed16)
static SECP256K1_INLINE uint64_t rotl (const uint64_t x, int k)
static SECP256K1_INLINE uint64_t testrand64 (void)
static SECP256K1_INLINE uint64_t testrand_bits (int bits)
static SECP256K1_INLINE uint32_t testrand32 (void)
static uint32_t testrand_int (uint32_t range)
static void testrand256 (unsigned char *b32)
static void testrand_bytes_test (unsigned char *bytes, size_t len)
static void testrand256_test (unsigned char *b32)
static void testrand_flip (unsigned char *b, size_t len)
static void testrand_init (const char *hexseed)
static void testrand_finish (void)

Variables

static uint64_t secp256k1_test_state [4]

Function Documentation

◆ rotl()

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:

◆ testrand256()

void 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:

◆ testrand256_test()

void testrand256_test ( unsigned char * b32)
static

Definition at line 116 of file testrand_impl.h.

Here is the call graph for this function:

◆ testrand32()

SECP256K1_INLINE uint32_t testrand32 ( void )
static

Definition at line 61 of file testrand_impl.h.

Here is the call graph for this function:

◆ testrand64()

SECP256K1_INLINE uint64_t 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:

◆ testrand_bits()

SECP256K1_INLINE uint64_t 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:

◆ testrand_bytes_test()

void 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:

◆ testrand_finish()

void testrand_finish ( void )
static

Definition at line 161 of file testrand_impl.h.

Here is the call graph for this function:

◆ testrand_flip()

void 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:

◆ testrand_init()

void testrand_init ( const char * hexseed)
static

Definition at line 124 of file testrand_impl.h.

Here is the call graph for this function:

◆ testrand_int()

uint32_t 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:

◆ testrand_seed()

SECP256K1_INLINE void 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.