sgen.cpp 487 B

1234567891011121314151617181920
  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. using namespace std;
  13. int main(int argc, char *argv[]) {
  14. registerGen(argc, argv, 1);
  15. println(rnd.next("[a-zA-Z0-9]{1,1000}"));
  16. }