igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Odd behavior of srand


From: Mark McClure
Subject: Re: [igraph] Odd behavior of srand
Date: Fri, 13 Mar 2009 08:41:39 -0400

> you must set igraph_rng_inited to 1, otherwise the first igraph
> function that uses rand() will call srand(time(0)) before. (And it
> also sets igraph_rng_inited to 1, so the subsequent calls work well.)

That does it alright.
Thanks,
Mark


reply via email to

[Prev in Thread] Current Thread [Next in Thread]