From d44a1f13e8d2875796387d5203469cfdc471c314 Mon Sep 17 00:00:00 2001 From: tb <> Date: Fri, 7 Apr 2023 22:22:10 +0000 Subject: bn_test: rand_neg() is not only one of the most stupidly named functions in the entire code base it also has a few parentheses too many --- src/regress/lib/libcrypto/bn/bn_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/regress/lib/libcrypto/bn/bn_test.c b/src/regress/lib/libcrypto/bn/bn_test.c index 068d93fafe..93c719e7ff 100644 --- a/src/regress/lib/libcrypto/bn/bn_test.c +++ b/src/regress/lib/libcrypto/bn/bn_test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_test.c,v 1.5 2023/04/07 22:18:42 tb Exp $ */ +/* $OpenBSD: bn_test.c,v 1.6 2023/04/07 22:22:10 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -2579,7 +2579,7 @@ rand_neg(void) static unsigned int neg = 0; static int sign[8] = { 0, 0, 0, 1, 1, 0, 1, 1 }; - return (sign[(neg++) % 8]); + return sign[neg++ % 8]; } int -- cgit v1.2.3-55-g6feb