From 04bc248c347c3fec67815dcb6a8d53665e816950 Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Mon, 3 Feb 2014 20:32:59 +0100 Subject: [PATCH] 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. --- src/libqof/qof/guid.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/libqof/qof/guid.c b/src/libqof/qof/guid.c index da4889d7a1..2868511c8f 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 *****************************************/