Skip to content

Commit c36b437

Browse files
committed
Enable rand/std_rng feature
We recently upgraded the rand dependency and we use it behind code feature gated on "rand-std". In that code we use `thread_rng` but this is only available if the "std_rng" feature is turned on, however in non-dev builds we do not enable this feature, we have a "rand-std" feature that enables "rand/std", it should also enable "std_rng". Enable "rand/std_rng" in the "rand-std" feature.
1 parent ff7c347 commit c36b437

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ std = ["alloc", "secp256k1-sys/std"]
2424
# allow use of Secp256k1::new and related API that requires an allocator
2525
alloc = ["secp256k1-sys/alloc"]
2626
bitcoin-hashes-std = ["bitcoin_hashes/std"]
27-
rand-std = ["rand/std"]
27+
rand-std = ["rand/std", "rand/std_rng"]
2828
recovery = ["secp256k1-sys/recovery"]
2929
lowmemory = ["secp256k1-sys/lowmemory"]
3030
global-context = ["std"]

0 commit comments

Comments
 (0)