1
0

sgen.cpp 533 B

123456789101112131415161718192021222324
  1. /*
  2. * Outputs random token.
  3. *
  4. * Token contains latin letters and digits and have length
  5. * between 1 and 1000 characters, inclusive.
  6. *
  7. * To generate different values, call "sgen.exe" with different parameters.
  8. *
  9. * It is typical behaviour of testlib generator to setup randseed by command line.
  10. */
  11. #include "testlib.h"
  12. #include <iostream>
  13. using namespace std;
  14. int main(int argc, char* argv[])
  15. {
  16. registerGen(argc, argv, 1);
  17. cout << rnd.next("[a-zA-Z0-9]{1,1000}") << endl;
  18. return 0;
  19. }