Thomas Huth, on Tue 09 Feb 2016 17:14:15 +0100, wrote:
> > +    srand(time(NULL));
> 
> That srand should maybe be done in main() instead? (Otherwise every
> subsystem might end up in repeating this all over the place)

Eric Blake added:
> >> +#define rand_a_b(a, b)\
> >> +    (rand()%(int)(b-a)+a)
> 
>   Should we rely on glib for nicer random interval functions?

Why not indeed.  What do you prefer?  A global GRand (as suggested
above), or a GRand local to the Slirp?

Samuel

Reply via email to