summaryrefslogtreecommitdiffstats
path: root/crypto/rand/randtest.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2015-01-24 10:57:19 -0500
committerRich Salz <rsalz@openssl.org>2015-01-24 10:58:38 -0500
commita2b18e657ea1a932d125154f4e13ab2258796d90 (patch)
treebdfcb8bbe1d673b3bce209ef289520e11a109464 /crypto/rand/randtest.c
parent2747d73c1466c487daf64a1234b6fe2e8a62ac75 (diff)
ifdef cleanup, part 4a: '#ifdef undef'
This removes all code surrounded by '#ifdef undef' One case is left: memmove() replaced by open-coded for loop, in crypto/stack/stack.c That needs further review. Also removed a couple of instances of /* dead code */ if I saw them while doing the main removal. Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'crypto/rand/randtest.c')
-rw-r--r--crypto/rand/randtest.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/crypto/rand/randtest.c b/crypto/rand/randtest.c
index 91bcac9906..3c2628cb15 100644
--- a/crypto/rand/randtest.c
+++ b/crypto/rand/randtest.c
@@ -133,16 +133,6 @@ int main(int argc, char **argv)
printf("test 1 done\n");
/* test 2 */
-#ifdef undef
- d = 0;
- for (i = 0; i < 16; i++)
- d += n2[i] * n2[i];
- d = d * 16.0 / 5000.0 - 5000.0;
- if (!((1.03 < d) && (d < 57.4))) {
- printf("test 2 failed, X=%.2f\n", d);
- err++;
- }
-#endif
d = 0;
for (i = 0; i < 16; i++)
d += n2[i] * n2[i];