MCPcopy Create free account
hub / github.com/Commit-Boost/commit-boost-client / random_jwt_secret

Function random_jwt_secret

crates/common/src/utils.rs:393–395  ·  view source on GitHub ↗

Generates a random string

()

Source from the content-addressed store, hash-verified

391
392/// Generates a random string
393pub fn random_jwt_secret() -> String {
394 rand::rng().sample_iter(&Alphanumeric).take(32).map(char::from).collect()
395}
396
397/// Returns the user agent from the request headers or an empty string if not
398/// present

Callers 1

handle_docker_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected