[Gimp-developer] Random number seeding interface

2002-11-21 Thread David Neary
Hi all, I recently changed all occurrences of rand() and friends to use g_rand* from the glib 2.0 interface. And in doing so, some of the flaws of the gimp random seed widget annoyed me. I have some suggestions for changing it, which I thopught I'd run past the list before I commit the changes

[Gimp-developer] Re: Random number seeding interface

2002-11-21 Thread Guillermo S. Romero / Familia Romero
[EMAIL PROTECTED] (2002-11-21 at 1459.36 +0100): The gimp_random_seed_new() function currently creates a spinbutton for the seed, and a togglebutton for whether a Time seed should be used. With the change over to g_rand* () the default seeding (which is from /dev/urandom by default, and time

Re: [Gimp-developer] Random number seeding interface

2002-11-21 Thread Nathan Carl Summers
On Thu, 21 Nov 2002, David Neary wrote: The real change would be to do away with the toggle, replace the toggle button with a normal button, and set a random seed in the spin-box when the button is pressed. For this, I've been using the global PRNG (g_random_int) rather than setting up what