|
Embedded Artistry Framework
Embedded Systems C++ Framework
|
#include "test.h"
Functions | |
| static uint32_t | rand32 (void) |
| static uint64_t | rand64 (void) |
| void | test_randseed (uint64_t s) |
| uint64_t | test_randn (uint64_t n) |
| uint64_t | test_randint (uint64_t a, uint64_t b) |
| static void | shuffle2 (uint64_t *p, uint64_t *q, size_t np, size_t nq) |
| void | test_shuffle (uint64_t *p, size_t n) |
| void | test_randrange (uint64_t *p, size_t n) |
| static int | insert (uint64_t *tab, size_t len, uint64_t v) |
| int | t_choose (uint64_t n, size_t k, uint64_t *p) |
Variables | |
| static uint64_t | seed = UINT64_MAX |
Referenced by t_choose().
|
static |
Referenced by test_randint(), and test_randn().
References p, r, t, and test_randn().
Referenced by t_choose(), and test_shuffle().
References calloc(), free(), insert(), k, malloc(), n, p, shuffle2(), and test_randn().
References n, r, rand64(), and UINT64_MAX.
Referenced by shuffle2(), t_choose(), test_randint(), and uint64_gen().

References n, p, and test_shuffle().
| void test_randseed | ( | uint64_t | s | ) |
References n, p, and shuffle2().
Referenced by test_randrange(), and uint64_gen().

|
static |
Referenced by rand32(), srand(), and test_randseed().
1.8.15