From 8e55ebfcd7a8e236abd165339b853def8640b7f0 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Tue, 23 Jul 2024 15:25:18 +0200 Subject: [PATCH] bindings/rust/src/lib.rs: fix the test with limited stack size. --- bindings/rust/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/rust/src/lib.rs b/bindings/rust/src/lib.rs index d62b4386..ff24ecdc 100644 --- a/bindings/rust/src/lib.rs +++ b/bindings/rust/src/lib.rs @@ -1990,7 +1990,7 @@ macro_rules! sig_variant_impl { #[test] fn test_multi_point() { let dst = b"BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_POP_"; - let num_pks = 10; + let num_pks = 13; let seed = [0u8; 32]; let mut rng = ChaCha20Rng::from_seed(seed); @@ -2018,7 +2018,7 @@ macro_rules! sig_variant_impl { sigs.iter().map(|s| s).collect(); // create random values - let mut rands: Vec = Vec::with_capacity(32 * num_pks); + let mut rands: Vec = Vec::with_capacity(8 * num_pks); for _ in 0..num_pks { let mut r = rng.next_u64(); while r == 0 {