diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2022-12-08 07:18:48 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2022-12-08 07:18:48 +0000 |
commit | d3bc74f233c40397fe78e1f483b92a63f3c9ac9e (patch) | |
tree | 22643933f72dd7c2d1d574e7b608db00719fb40a | |
parent | ad0faa38b69885e3f200364f1c12e964f987b852 (diff) |
bn_mod_exp test: drop extra parentheses for readability
-rw-r--r-- | regress/lib/libcrypto/bn/bn_mod_exp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/regress/lib/libcrypto/bn/bn_mod_exp.c b/regress/lib/libcrypto/bn/bn_mod_exp.c index b4c84a05c99..aca2ee68fdc 100644 --- a/regress/lib/libcrypto/bn/bn_mod_exp.c +++ b/regress/lib/libcrypto/bn/bn_mod_exp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_mod_exp.c,v 1.10 2022/12/05 00:24:44 tb Exp $ */ +/* $OpenBSD: bn_mod_exp.c,v 1.11 2022/12/08 07:18:47 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -162,15 +162,15 @@ main(int argc, char *argv[]) goto err; for (i = 0; i < 200; i++) { - c = (arc4random() % BN_BITS) - BN_BITS2; + c = arc4random() % BN_BITS - BN_BITS2; if (!BN_rand(a, NUM_BITS + c, 0, 0)) goto err; - c = (arc4random() % BN_BITS) - BN_BITS2; + c = arc4random() % BN_BITS - BN_BITS2; if (!BN_rand(b, NUM_BITS + c, 0, 0)) goto err; - c = (arc4random() % BN_BITS) - BN_BITS2; + c = arc4random() % BN_BITS - BN_BITS2; if (!BN_rand(m, NUM_BITS + c, 0, 1)) goto err; |