MCPcopy Create free account
hub / github.com/canopy-network/canopy / random_suffix

Function random_suffix

plugin/python/tutorial/rpc_test.py:48–50  ·  view source on GitHub ↗

Generate a random hex suffix for unique nicknames.

()

Source from the content-addressed store, hash-verified

46
47
48def random_suffix() -> str:
49 """Generate a random hex suffix for unique nicknames."""
50 return secrets.token_hex(4)
51
52
53def hex_to_base64(hex_str: str) -> str:

Callers 1

test_plugin_transactionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected