Lines Matching refs:bytes
93 int RAND_load_file(const char *file, long bytes)
95 /* If bytes >= 0, read up to 'bytes' bytes.
96 * if bytes == -1, read complete file. */
109 if (bytes == 0) return(ret);
116 * of bytes from a random device, nor do we want to use buffered
119 bytes = (bytes == -1) ? 2048 : bytes; /* ok, is 2048 enough? */
125 if (bytes > 0)
126 n = (bytes < BUFSIZE)?(int)bytes:BUFSIZE;
134 if (bytes > 0)
136 bytes-=n;
137 if (bytes <= 0) break;