cpp/src/parquet/bloom_filter_test.cc
// Helper function to generate random string.
Helper function to generate random string.
Helper function to generate random string .
std::string GetRandomString(uint32_t length) {
  const std::string charset =
      "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  std::default_random_engine gen(42);
  std::uniform_int_distribution<uint32_t> dist(0, static_cast<int>(charset.size() - 1));
  std::string ret(length, 'x');
  for (uint32_t i = 0; i < length; i++) {
    ret[i] = charset[dist(gen)];
  }
  return ret;
}
std :: string GetRandomString ( uint32_t length ) { const std :: string charset = " " ; std :: default_random_engine gen ( 42 ) ; std :: uniform_int_distribution < uint32_t > dist ( 0 , static_cast < int > ( charset . size ( ) - 1 ) ) ; std :: string ret ( length , ' ' ) ; for ( uint32_t i = 0 ; i < length ; i ++ ) { ret [ i ] = charset [ dist ( gen ) ] ; } return ret ; }
Helper function to generate random string.
Helper function to generate random string .
// Character set used to generate random string