Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/src/testrand.h
Show All 29 Lines | |||||
static void secp256k1_rand256(unsigned char *b32); | static void secp256k1_rand256(unsigned char *b32); | ||||
/** Generate a pseudorandom 32-byte array with long sequences of zero and one bits. */ | /** Generate a pseudorandom 32-byte array with long sequences of zero and one bits. */ | ||||
static void secp256k1_rand256_test(unsigned char *b32); | static void secp256k1_rand256_test(unsigned char *b32); | ||||
/** Generate pseudorandom bytes with long sequences of zero and one bits. */ | /** Generate pseudorandom bytes with long sequences of zero and one bits. */ | ||||
static void secp256k1_rand_bytes_test(unsigned char *bytes, size_t len); | static void secp256k1_rand_bytes_test(unsigned char *bytes, size_t len); | ||||
/** Flip a single random bit in a byte array */ | |||||
static void secp256k1_rand_flip(unsigned char *b, size_t len); | |||||
#endif /* SECP256K1_TESTRAND_H */ | #endif /* SECP256K1_TESTRAND_H */ |