diff -r 37e0966e43b6 -r 16523135943d demo/descriptor_map_demo.cc --- a/demo/descriptor_map_demo.cc Fri Oct 13 15:10:50 2006 +0000 +++ b/demo/descriptor_map_demo.cc Sat Oct 14 15:26:05 2006 +0000 @@ -32,11 +32,12 @@ #include #include +#include + #include -#include #include -#include + using namespace lemon; @@ -75,7 +76,6 @@ }; int main() { - std::srand(std::time(0)); typedef ListGraph Graph; typedef Graph::Node Node; typedef Graph::Edge Edge; @@ -105,8 +105,8 @@ // it holds reference to it. const int EDGE = (int)(NODE * std::log(double(NODE))); for (int i = 0; i < EDGE; ++i) { - int si = (int)(std::rand() / (RAND_MAX + 1.0) * NODE); - int ti = (int)(std::rand() / (RAND_MAX + 1.0) * NODE); + int si = rnd[NODE]; + int ti = rnd[NODE]; graph.addEdge(nodeInv[si], nodeInv[ti]); }