After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 317355 - Qbist previews in windows
Qbist previews in windows
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Plugins
2.2.x
Other Windows
: Normal minor
: 2.2
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2005-09-27 17:53 UTC by Sylvia
Modified: 2008-01-15 13:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sylvia 2005-09-27 17:53:52 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.
Comment 1 Sven Neumann 2005-09-27 20:56:26 UTC
You also reported bug #317357 which makes me believe that there's a problem with
the GLib random number generator.
Comment 2 Sven Neumann 2005-09-28 14:33:02 UTC
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.
Comment 3 Tor Lillqvist 2005-09-28 15:53:02 UTC
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.