Glossary: Coding with AI Assistants
secrets module
Also written: secrets.token_hex
A standard-library module made for unguessable codes, tokens and passwords; `secrets.token_hex(4)` gives 8 random hex characters. It's the safe alternative to `random`.