MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / get_random_id

Function get_random_id

web/pgacloud/utils/misc.py:40–43  ·  view source on GitHub ↗

Return a random 10 byte string

()

Source from the content-addressed store, hash-verified

38
39
40def get_random_id():
41 """ Return a random 10 byte string """
42 letters = string.ascii_letters + string.digits
43 return ''.join(secrets.choice(letters) for _ in range(10))

Callers 2

_create_firewall_ruleMethod · 0.90

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected