mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-05 05:14:51 +02:00
Switch num/field to extern C; small fixes
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
|
||||
#include "num.h"
|
||||
|
||||
extern "C" {
|
||||
|
||||
typedef struct {
|
||||
int initialized;
|
||||
gmp_randstate_t rng;
|
||||
@@ -146,3 +148,5 @@ void static secp256k1_num_negate(secp256k1_num_t *r) {
|
||||
void static secp256k1_num_set_rand(secp256k1_num_t *r, const secp256k1_num_t *a) {
|
||||
mpz_urandomm(r->bn, secp256k1_num_state.rng, a->bn);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user