diff options
| author | tb <> | 2023-04-07 22:22:10 +0000 |
|---|---|---|
| committer | tb <> | 2023-04-07 22:22:10 +0000 |
| commit | b7a450849e7b0f3e6679bc65202f8353c5e3ec2c (patch) | |
| tree | 56b33d34989464297aa8dcb1833fade70500ddaa /src | |
| parent | 8c59b060dbd812642d33997463995c866b0d7bdc (diff) | |
| download | openbsd-b7a450849e7b0f3e6679bc65202f8353c5e3ec2c.tar.gz openbsd-b7a450849e7b0f3e6679bc65202f8353c5e3ec2c.tar.bz2 openbsd-b7a450849e7b0f3e6679bc65202f8353c5e3ec2c.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 |
