MCPcopy Create free account
hub / github.com/emwalker/digraph / random_id

Function random_id

backend/src/types.rs:325–331  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

323pub struct Okey(pub ExternalId, pub RepoId);
324
325pub fn random_id() -> String {
326 rand::thread_rng()
327 .sample_iter(&Alphanumeric)
328 .take(43)
329 .map(char::from)
330 .collect()
331}
332
333pub enum Alert {
334 Danger(String),

Callers 1

makeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected