Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
323
pub struct Okey(pub ExternalId, pub RepoId);
324
325
pub fn random_id() -> String {
326
rand::thread_rng()
327
.sample_iter(&Alphanumeric)
328
.take(43)
329
.map(char::from)
330
.collect()
331
}
332
333
pub enum Alert {
334
Danger(String),
Callers
1
make
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected