- 4B729AFBF1B614C0E53367586D7880C27856E0A7A7996735C718091124FC436C3F9003B213B8BA56E80ACC41E4CDF98E5F56D8B3CF1573D6BB699F0B59FD89EC
+ 72A4C1F55A1EF9D853F44A93F1F5396E63739DC4C1C70017DD3F3D2EA6C7E1B843CE0CA60E5D06DDCC742ECDE6F17CDABDDBE833F83AD7BEA2CEBC40B80E332A
eucrypt/smg_rsa/truerandom.c
(68 . 13)(68 . 14)
349 int total = 0;
350
351 while (total < noctets) {
352 errno = 0;
353 nread = read(from, out+total, noctets-total);
354 //on interrupt received just try again
355 if (nread == -1 && errno == EINTR)
356 continue;
357 //on error condition abort
358 if (nread == -1 || nread == 0) {
359 printf("Error reading from entropy source %s: %s\n", ENTROPY_SOURCE, strerror(errno));
360 if (errno != 0 && (nread == -1 || nread == 0)) {
361 printf("Error reading from entropy source %s after %d read: %s\n", ENTROPY_SOURCE, total, strerror(errno));
362 return total; //total read so far
363 }
364