Skip to content

Commit

Permalink
secp256k1 v0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicletz committed Jan 3, 2025
1 parent d3bdeec commit 23e44ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ERLANG_PATH ?= $(shell erl -eval 'io:format("~s", [lists:concat([code:root_dir()
CFLAGS += -I"$(ERLANG_PATH)"
CFLAGS += -I c_src/secp256k1 -I c_src/secp256k1/src -I c_src/secp256k1/include
CFLAGS += -I$(../libsecp256k1)/src
SECP256K1_VERSION = v0.5.1
SECP256K1_VERSION = v0.4.1

ifneq ($(OS),Windows_NT)
CFLAGS += -fPIC
Expand Down
4 changes: 2 additions & 2 deletions c_src/libsecp256k1_nif.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ rand32(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
ERL_NIF_TERM r;
unsigned char* output = enif_make_new_binary(env, 4, &r);
uint32_t v = testrand32();
uint32_t v = secp256k1_testrand32();
memcpy(&v, output, 4);
return r;
}
Expand All @@ -149,7 +149,7 @@ rand256(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
ERL_NIF_TERM r;
unsigned char* output = enif_make_new_binary(env, 32, &r);
testrand256(output);
secp256k1_testrand256(output);
return r;
}

Expand Down

0 comments on commit 23e44ba

Please sign in to comment.