GNOME Bugzilla – Bug 317355
Qbist previews in windows
Last modified: 2008-01-15 13:01:03 UTC
Distribution/Version: 98SE (but happens on XP too) In qbist preview all the surrounding preview images are identically. Screenshots can be seen in this forum thread http://www.gimpforum.de/ftopic2515.html and Eleanora says, this problem is only appearing on windows not on linux.
You also reported bug #317357 which makes me believe that there's a problem with the GLib random number generator.
Indeed. The problem is that the plug-in created a new random number generator each time it needs to recreate a preview. This works on systems that provide enough entropy (for example by means of /dev/urandom). On Windows, the system clock is used in the lack of such a device. Fixed in both branches: 2005-09-28 Sven Neumann <sven@gimp.org> * plug-ins/common/gqbist.c: use a single random number generator for the lifetime of the plug-in. Fixes bug #317355.
Actually, Windows does have a crypto API, which uses similar sources for randomness as /dev/urandom. g_rand_new() doesn't use it, though. It probably should.