MCPcopy Create free account
hub / github.com/apache/arrow / Scrub

Function Scrub

cpp/src/parquet/metadata.cc:734–738  ·  view source on GitHub ↗

Replace string data with random-generated uppercase characters

Source from the content-addressed store, hash-verified

732
733// Replace string data with random-generated uppercase characters
734static void Scrub(std::string* s) {
735 static ::arrow::random::pcg64 rng;
736 std::uniform_int_distribution<> caps(65, 90);
737 for (auto& c : *s) c = caps(rng);
738}
739
740// Replace potentially sensitive metadata with random data
741static void Scrub(format::FileMetaData* md) {

Callers 1

SerializeUnencryptedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected