|
|
@@ -917,6 +917,7 @@ gather_time_entropy(void)
|
|
|
|
|
|
static unsigned long
|
|
|
ENTROPY_DEBUG(const char * label, unsigned long entropy) {
|
|
|
+#ifdef ENABLE_EXPAT_ENTROPY_DEBUG
|
|
|
const char * const EXPAT_ENTROPY_DEBUG = getenv("EXPAT_ENTROPY_DEBUG");
|
|
|
if (EXPAT_ENTROPY_DEBUG && ! strcmp(EXPAT_ENTROPY_DEBUG, "1")) {
|
|
|
fprintf(stderr, "Entropy: %s --> 0x%0*lx (%lu bytes)\n",
|
|
|
@@ -924,6 +925,7 @@ ENTROPY_DEBUG(const char * label, unsigned long entropy) {
|
|
|
(int)sizeof(entropy) * 2, entropy,
|
|
|
(unsigned long)sizeof(entropy));
|
|
|
}
|
|
|
+#endif
|
|
|
return entropy;
|
|
|
}
|
|
|
|