Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
40
def
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_security_group
Method · 0.90
_create_firewall_rule
Method · 0.90
Calls
1
join
Method · 0.80
Tested by
no test coverage detected