Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/acking-you/static_flow
/ pick_random_cover
Function
pick_random_cover
crates/cli/src/db.rs:403–407 ·
view source on GitHub ↗
(candidates: &[String])
Source
from the content-addressed store, hash-verified
401
}
402
403
fn pick_random_cover(candidates: &[String]) -> String {
404
let mut rng = OsRng;
405
let index = rng.gen_range(0..candidates.len());
406
candidates[index].clone()
407
}
Callers
1
query_fallback_cover
Function · 0.85
Calls
2
len
Method · 0.80
clone
Method · 0.80
Tested by
no test coverage detected