Re: random number stuff



On Fri, Oct 10, 2003 at 10:28:26AM +0200, Sebastian Wilhelmi wrote:
> Hi George,
> 
> I think, you should open a bugzilla bug and attach a patch. Most of the
> changes, you propose seem very reasonable to me. I allready had some
> people suggesting adding the 'init_by_array' functions, but didn't have
> time to implement it. As for the seeding by tv.tv_sec ^ tv.tv_usec I
> must admit, that I did it without diving further into the matter, so
> your proposal makes sense, especially when adding 'init_by_array'.

Sorry it took so long, even being such a simple patch.  In any case
bug filed, patch attached to the bug see:
http://bugzilla.gnome.org/show_bug.cgi?id=129636

Added functions
g_rand_new_with_seed_array
g_rand_set_seed_array
g_rand_copy

Patch has a ChangeLog

Also added some testing to rand-test.c to see that it works just like the
reference implementation.

For context see:
http://mail.gnome.org/archives/gtk-devel-list/2003-September/msg00236.html
since it's been a while ...

George

-- 
George <jirka 5z com>
   If God did not exist, it would be necessary to invent him.
                       -- Voltaire



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]