/[resiprocate]/main/rutil/test/testRandomHex.cxx
ViewVC logotype

Diff of /main/rutil/test/testRandomHex.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

main/sip/resiprocate/test/testRandomHex.cxx revision 1796 by fluffy, Tue Sep 16 13:50:58 2003 UTC main/rutil/test/testRandomHex.cxx revision 5363 by jason, Fri Sep 2 22:27:00 2005 UTC
# Line 2  Line 2 
2  #include <iostream>  #include <iostream>
3  #include <set>  #include <set>
4    
5  #include "resiprocate/os/Data.hxx"  #include "rutil/Data.hxx"
6  #include "resiprocate/os/Random.hxx"  #include "rutil/Random.hxx"
7    
8  using namespace std;  using namespace std;
9  using namespace resip;  using namespace resip;
10    
11  int main(int argc, char** argv)  int main(int argc, char** argv)
12  {  {
13     if(argc != 3)     int runs = 1000;
14     {     int length = 8;
       cerr << "usage: testRandomHex number_of_tries string_length" << endl;  
       exit(-1);  
    }  
15    
16       if(argc == 3)
17       {
18     int runs = atoi(argv[1]);     int runs = atoi(argv[1]);
19     int length = atoi(argv[2]);     int length = atoi(argv[2]);
20       }
21    
22     Random::initialize();     //Random::initialize();
23        
24    
25     if (runs <= 0 || length <= 0)     if (runs <= 0 || length <= 0)

Legend:
Removed from v.1796  
changed lines
  Added in v.5363

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27