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

Function random_string

src/models/durable_wal.rs:179–185  ·  view source on GitHub ↗
(len: usize)

Source from the content-addressed store, hash-verified

177 use tempfile::tempdir;
178
179 fn random_string(len: usize) -> String {
180 thread_rng()
181 .sample_iter(&Alphanumeric)
182 .take(len)
183 .map(char::from)
184 .collect()
185 }
186
187 fn random_vector() -> RawVectorEmbedding {
188 let mut rng = thread_rng();

Callers 4

random_vectorFunction · 0.70

Calls

no outgoing calls

Tested by 3