string Darabonba_FileForm::Client::getBoundary()

in cpp/src/file_form.cpp [14:25]


string Darabonba_FileForm::Client::getBoundary() {
  typedef boost::uniform_int<long long int> NumberDistribution;
  typedef boost::mt19937 RandomNumberGenerator;
  typedef boost::variate_generator<RandomNumberGenerator&,NumberDistribution> Generator;

  NumberDistribution distribution(MIN, MAX);
  RandomNumberGenerator generator;
  Generator numberGenerator(generator, distribution);
  generator.seed(time(nullptr)); // seed with the current time
  long long int A=numberGenerator();
  return to_string(A);
}