gnucash master: Win32: Reduce threshold to display the "few random bits" warning.
Christian Stimming
cstim at code.gnucash.org
Mon Feb 3 14:33:33 EST 2014
Updated via https://github.com/Gnucash/gnucash/commit/04bc248c (commit)
from https://github.com/Gnucash/gnucash/commit/025032dc (commit)
commit 04bc248c347c3fec67815dcb6a8d53665e816950
Author: Christian Stimming <christian at cstimming.de>
Date: Mon Feb 3 20:32:59 2014 +0100
Win32: Reduce threshold to display the "few random bits" warning.
Win32 has a smaller pool of random bits, but the displayed warning confuses
really a lot of people. Hence, I think we'd better switch off this warning
for this particular known case.
diff --git a/src/libqof/qof/guid.c b/src/libqof/qof/guid.c
index da4889d..2868511 100644
--- a/src/libqof/qof/guid.c
+++ b/src/libqof/qof/guid.c
@@ -54,7 +54,14 @@
/* Constants *******************************************************/
#define DEBUG_GUID 0
#define BLOCKSIZE 4096
-#define THRESHOLD (2 * BLOCKSIZE)
+#ifdef G_PLATFORM_WIN32
+/* Win32 has a smaller pool of random bits, but the displayed warning confuses
+ * really a lot of people. Hence, I think we'd better switch off this warning
+ * for this particular known case. */
+# define THRESHOLD 1500
+#else
+# define THRESHOLD (2 * BLOCKSIZE)
+#endif
/* Static global variables *****************************************/
Summary of changes:
src/libqof/qof/guid.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
More information about the gnucash-changes
mailing list