MCPcopy Create free account
hub / github.com/apache/datafusion / random_string

Function random_string

datafusion/physical-expr/benches/in_list_strategy.rs:157–159  ·  view source on GitHub ↗
(rng: &mut StdRng, len: usize)

Source from the content-addressed store, hash-verified

155// =============================================================================
156
157fn random_string(rng: &mut StdRng, len: usize) -> String {
158 String::from_utf8(rng.sample_iter(&Alphanumeric).take(len).collect()).unwrap()
159}
160
161/// Creates a set of strings that share a common prefix but differ in suffix.
162/// Uses random alphanumeric suffix to avoid bench-maxing on numeric patterns.

Callers 4

bench_stringFunction · 0.70
bench_dict_stringFunction · 0.70

Calls 2

collectMethod · 0.80
takeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…