MCPcopy Create free account
hub / github.com/Mrinank-Bhowmick/python-beginner-projects / hash_gen

Function hash_gen

projects/CRUD-with-postgresql/main.py:63–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61
62 # Generate hash for assigning to a entry
63 def hash_gen():
64 lower = string.ascii_lowercase
65 upper = string.ascii_uppercase
66 digits = string.digits
67 whole = lower + upper + digits
68 hash_string = random.sample(whole, 8)
69 hash = "".join(hash_string)
70 return hash
71
72 # Check if a table exits, if not create one
73 # We have the following columns in the table

Callers 1

insertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected