Replace string data with random-generated uppercase characters
| 732 | |
| 733 | // Replace string data with random-generated uppercase characters |
| 734 | static 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 |
| 741 | static void Scrub(format::FileMetaData* md) { |
no outgoing calls
no test coverage detected