@@ -1288,7 +1288,7 @@ mod tests {
12881288 let mut cs = SatisfyingAssignment :: < E2 > :: new ( ) ;
12891289 let ( a, e, s) = synthesize_smul :: < E1 , _ > ( cs. namespace ( || "synthesize" ) ) ;
12901290 let ( inst, witness) = cs
1291- . r1cs_instance_and_witness ( & shape, & ck, E2 :: Scalar :: ZERO )
1291+ . r1cs_instance_and_witness ( & shape, & ck, E2 :: Scalar :: random ( & mut OsRng ) )
12921292 . unwrap ( ) ;
12931293
12941294 let a_p: Point < E1 > = Point :: new (
@@ -1347,7 +1347,7 @@ mod tests {
13471347 let mut cs = SatisfyingAssignment :: < E2 > :: new ( ) ;
13481348 let ( a, e) = synthesize_add_equal :: < E1 , _ > ( cs. namespace ( || "synthesize add equal" ) ) ;
13491349 let ( inst, witness) = cs
1350- . r1cs_instance_and_witness ( & shape, & ck, E2 :: Scalar :: ZERO )
1350+ . r1cs_instance_and_witness ( & shape, & ck, E2 :: Scalar :: random ( & mut OsRng ) )
13511351 . unwrap ( ) ;
13521352 let a_p: Point < E1 > = Point :: new (
13531353 a. x . get_value ( ) . unwrap ( ) ,
@@ -1410,7 +1410,7 @@ mod tests {
14101410 let mut cs = SatisfyingAssignment :: < E2 > :: new ( ) ;
14111411 let e = synthesize_add_negation :: < E1 , _ > ( cs. namespace ( || "synthesize add negation" ) ) ;
14121412 let ( inst, witness) = cs
1413- . r1cs_instance_and_witness ( & shape, & ck, E2 :: Scalar :: ZERO )
1413+ . r1cs_instance_and_witness ( & shape, & ck, E2 :: Scalar :: random ( & mut OsRng ) )
14141414 . unwrap ( ) ;
14151415 let e_p: Point < E1 > = Point :: new (
14161416 e. x . get_value ( ) . unwrap ( ) ,
0 commit comments