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

Function get_random_string

datafusion/core/tests/fuzz_cases/limit_fuzz.rs:342–348  ·  view source on GitHub ↗

Return random ASCII String with len

(len: usize)

Source from the content-addressed store, hash-verified

340
341/// Return random ASCII String with len
342fn get_random_string(len: usize) -> String {
343 rng()
344 .sample_iter(rand::distr::Alphanumeric)
345 .take(len)
346 .map(char::from)
347 .collect()
348}

Callers 2

new_strMethod · 0.85
new_i64strMethod · 0.85

Calls 3

collectMethod · 0.80
mapMethod · 0.45
takeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…