Re: Glib rand() function



Hi Derek,

>         Is rand() a system-independent function?  

No.

> Should there be
> 
> gint g_rand(void);
> void g_srand(guint seed);

In glib-1.3 there are such functions.
 
>         functions?  I'm writing a new data structure that might be a
> candidate for inclusion into Glib, but I need to use rand().  Considering
> that it returns an "int", I don't think rand is architecture independent.

Bye,
Sebastian
-- 
Sebastian Wilhelmi                   |            här ovanför alla molnen
mailto:wilhelmi@ira.uka.de           |     är himmlen så förunderligt blå
http://goethe.ira.uka.de/~wilhelmi   |



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