Correctly adjust location of comment
authorLutz Jänicke <jaenicke@openssl.org>
Tue, 20 May 2008 08:10:51 +0000 (08:10 +0000)
committerLutz Jänicke <jaenicke@openssl.org>
Tue, 20 May 2008 08:10:51 +0000 (08:10 +0000)
Submitted by: Ben Laurie <ben@links.org>

crypto/rand/randfile.c

index 9b739f17e0ba6c2b1b57fe5e9654c718115de2a8..6c0ec9a41cdfcd315ac75b96da189e36af6ed96b 100644 (file)
@@ -126,10 +126,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;