projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DSO_ctrl() changes have removed a couple of DSO_METHOD-specific functions
[oweals/openssl.git]
/
crypto
/
rand
/
randtest.c
diff --git
a/crypto/rand/randtest.c
b/crypto/rand/randtest.c
index ac3f0d7097722dfd926269fba65aeec6c15eaacb..da96e3f6959a0ddd9072584d72c72687f24d3eec 100644
(file)
--- a/
crypto/rand/randtest.c
+++ b/
crypto/rand/randtest.c
@@
-1,5
+1,5
@@
/* crypto/rand/randtest.c */
/* crypto/rand/randtest.c */
-/* Copyright (C) 1995-199
7
Eric Young (eay@cryptsoft.com)
+/* Copyright (C) 1995-199
8
Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* All rights reserved.
*
* This package is an SSL implementation written
@@
-58,7
+58,7
@@
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
-#include
"rand.h"
+#include
<openssl/rand.h>
/* some FIPS 140-1 random number test */
/* some simple tests */
/* some FIPS 140-1 random number test */
/* some simple tests */
@@
-73,7
+73,7
@@
int main()
/*double d; */
long d;
/*double d; */
long d;
- RAND_bytes(buf,2500);
+ RAND_
pseudo_
bytes(buf,2500);
n1=0;
for (i=0; i<16; i++) n2[i]=0;
n1=0;
for (i=0; i<16; i++) n2[i]=0;
@@
-117,7
+117,7
@@
int main()
/* test 1 */
if (!((9654 < n1) && (n1 < 10346)))
{
/* test 1 */
if (!((9654 < n1) && (n1 < 10346)))
{
- printf("test 1 failed, X=%l
d
\n",n1);
+ printf("test 1 failed, X=%l
u
\n",n1);
err++;
}
printf("test 1 done\n");
err++;
}
printf("test 1 done\n");
@@
-150,37
+150,37
@@
int main()
{
if (!((2267 < runs[i][0]) && (runs[i][0] < 2733)))
{
{
if (!((2267 < runs[i][0]) && (runs[i][0] < 2733)))
{
- printf("test 3 failed, bit=%d run=%d num=%l
d
\n",
+ printf("test 3 failed, bit=%d run=%d num=%l
u
\n",
i,1,runs[i][0]);
err++;
}
if (!((1079 < runs[i][1]) && (runs[i][1] < 1421)))
{
i,1,runs[i][0]);
err++;
}
if (!((1079 < runs[i][1]) && (runs[i][1] < 1421)))
{
- printf("test 3 failed, bit=%d run=%d num=%l
d
\n",
+ printf("test 3 failed, bit=%d run=%d num=%l
u
\n",
i,2,runs[i][1]);
err++;
}
if (!(( 502 < runs[i][2]) && (runs[i][2] < 748)))
{
i,2,runs[i][1]);
err++;
}
if (!(( 502 < runs[i][2]) && (runs[i][2] < 748)))
{
- printf("test 3 failed, bit=%d run=%d num=%l
d
\n",
+ printf("test 3 failed, bit=%d run=%d num=%l
u
\n",
i,3,runs[i][2]);
err++;
}
if (!(( 223 < runs[i][3]) && (runs[i][3] < 402)))
{
i,3,runs[i][2]);
err++;
}
if (!(( 223 < runs[i][3]) && (runs[i][3] < 402)))
{
- printf("test 3 failed, bit=%d run=%d num=%l
d
\n",
+ printf("test 3 failed, bit=%d run=%d num=%l
u
\n",
i,4,runs[i][3]);
err++;
}
if (!(( 90 < runs[i][4]) && (runs[i][4] < 223)))
{
i,4,runs[i][3]);
err++;
}
if (!(( 90 < runs[i][4]) && (runs[i][4] < 223)))
{
- printf("test 3 failed, bit=%d run=%d num=%l
d
\n",
+ printf("test 3 failed, bit=%d run=%d num=%l
u
\n",
i,5,runs[i][4]);
err++;
}
if (!(( 90 < runs[i][5]) && (runs[i][5] < 223)))
{
i,5,runs[i][4]);
err++;
}
if (!(( 90 < runs[i][5]) && (runs[i][5] < 223)))
{
- printf("test 3 failed, bit=%d run=%d num=%l
d
\n",
+ printf("test 3 failed, bit=%d run=%d num=%l
u
\n",
i,6,runs[i][5]);
err++;
}
i,6,runs[i][5]);
err++;
}
@@
-190,13
+190,13
@@
int main()
/* test 4 */
if (runs[0][33] != 0)
{
/* test 4 */
if (runs[0][33] != 0)
{
- printf("test 4 failed, bit=%d run=%d num=%l
d
\n",
+ printf("test 4 failed, bit=%d run=%d num=%l
u
\n",
0,34,runs[0][33]);
err++;
}
if (runs[1][33] != 0)
{
0,34,runs[0][33]);
err++;
}
if (runs[1][33] != 0)
{
- printf("test 4 failed, bit=%d run=%d num=%l
d
\n",
+ printf("test 4 failed, bit=%d run=%d num=%l
u
\n",
1,34,runs[1][33]);
err++;
}
1,34,runs[1][33]);
err++;
}