projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94fd382
)
Correctly adjust location of comment
author
Lutz Jänicke
<jaenicke@openssl.org>
Tue, 20 May 2008 08:10:48 +0000
(08:10 +0000)
committer
Lutz Jänicke
<jaenicke@openssl.org>
Tue, 20 May 2008 08:10:48 +0000
(08:10 +0000)
Submitted by: Ben Laurie <ben@links.org>
crypto/rand/randfile.c
patch
|
blob
|
history
diff --git
a/crypto/rand/randfile.c
b/crypto/rand/randfile.c
index 7468eaa578484f34950ad9d9eb908f2b4174968a..0c7f9e6dfb30c7fad0ccff2070d8346477904671 100644
(file)
--- a/
crypto/rand/randfile.c
+++ b/
crypto/rand/randfile.c
@@
-128,10
+128,10
@@
int RAND_load_file(const char *file, long bytes)
n = BUFSIZE;
i=fread(buf,1,n,in);
if (i <= 0) break;
- /* even if n != i, use the full array */
#ifdef PURIFY
RAND_add(buf,i,(double)i);
#else
+ /* even if n != i, use the full array */
RAND_add(buf,n,(double)i);
#endif
ret+=i;