MCPcopy Create free account
hub / github.com/cosdata/cosdata / random_string

Function random_string

src/models/wal.rs:393–399  ·  view source on GitHub ↗
(len: usize)

Source from the content-addressed store, hash-verified

391 use tempfile::tempdir;
392
393 fn random_string(len: usize) -> String {
394 thread_rng()
395 .sample_iter(&Alphanumeric)
396 .take(len)
397 .map(char::from)
398 .collect()
399 }
400
401 fn random_vector() -> RawVectorEmbedding {
402 let mut rng = thread_rng();

Callers 4

random_vectorFunction · 0.70

Calls

no outgoing calls

Tested by 3