Use secrets std library
On Python 3.6, secrets
standard library is introduced and it is suitable for generating nonce
and sid
.
The Cert-API runs on Python 3.5 in the production at the moment. Consider usage of secrets
library when the newer Python version would be available.