MCPcopy Create free account
hub / github.com/agentcodee/cursor-free-everyday / get_random_hex

Function get_random_hex

reset_machine.rs:273–280  ·  view source on GitHub ↗
(length: usize)

Source from the content-addressed store, hash-verified

271}
272
273fn get_random_hex(length: usize) -> String {
274 thread_rng()
275 .sample_iter(&Alphanumeric)
276 .take(length)
277 .map(char::from)
278 .collect::<String>()
279 .to_lowercase() // PowerShell version produces lowercase hex
280}
281
282fn new_standard_machine_id() -> String {
283 // Template: xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected