use 128-bit hex seed

This commit is contained in:
Pieter Wuille
2015-02-14 15:30:58 -08:00
parent 02efd06554
commit 8956111802
3 changed files with 31 additions and 10 deletions

View File

@@ -14,7 +14,7 @@
/* A non-cryptographic RNG used only for test infrastructure. */
/** Seed the pseudorandom number generator for testing. */
SECP256K1_INLINE static void secp256k1_rand_seed(uint64_t v);
SECP256K1_INLINE static void secp256k1_rand_seed(const unsigned char *seed16);
/** Generate a pseudorandom 32-bit number. */
static uint32_t secp256k1_rand32(void);