added function for generating random ascii strings, and improved the test program to test for this as well

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3992 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2011-01-29 14:23:07 +00:00
parent 13132fe248
commit 25056b3623
3 changed files with 18 additions and 1 deletions

View file

@ -132,6 +132,7 @@ int main(int argc, char **argv)
feenableexcept(FE_INVALID) ;
feenableexcept(FE_DIVBYZERO) ;
#endif
std::cerr << "Generating random 64 chars string (run that again to test that it's changing): " << RSRandom::random_alphaNumericString(64) << std::endl;
int nt = 10 ; // number of threads.
std::vector<myThread *> threads(nt,(myThread*)NULL) ;