diff options
author | tb <> | 2023-04-07 22:22:10 +0000 |
---|---|---|
committer | tb <> | 2023-04-07 22:22:10 +0000 |
commit | d44a1f13e8d2875796387d5203469cfdc471c314 (patch) | |
tree | 56b33d34989464297aa8dcb1833fade70500ddaa /src | |
parent | e84247a0f89e9fd10bd22697e23ceb2ed8d8835b (diff) | |
download | openbsd-d44a1f13e8d2875796387d5203469cfdc471c314.tar.gz openbsd-d44a1f13e8d2875796387d5203469cfdc471c314.tar.bz2 openbsd-d44a1f13e8d2875796387d5203469cfdc471c314.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/regress/lib/libcrypto/bn/bn_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ | |||
1 | /* $OpenBSD: bn_test.c,v 1.5 2023/04/07 22:18:42 tb Exp $ */ | 1 | /* $OpenBSD: bn_test.c,v 1.6 2023/04/07 22:22:10 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -2579,7 +2579,7 @@ rand_neg(void) | |||
2579 | static unsigned int neg = 0; | 2579 | static unsigned int neg = 0; |
2580 | static int sign[8] = { 0, 0, 0, 1, 1, 0, 1, 1 }; | 2580 | static int sign[8] = { 0, 0, 0, 1, 1, 0, 1, 1 }; |
2581 | 2581 | ||
2582 | return (sign[(neg++) % 8]); | 2582 | return sign[neg++ % 8]; |
2583 | } | 2583 | } |
2584 | 2584 | ||
2585 | int | 2585 | int |