3 ms·
> there is no cost to SECRET_KEY = os.urandom Only if you generate the key up front and use the same value everywhere. If you just call os.urandom in your app
by jjnoakes 10y ago
> there is no cost to SECRET_KEY = os.urandom
Only if you generate the key up front and use the same value everywhere.
If you just call os.urandom in your app, then the cost is every restart (and every separate server instance) invalidates the cookies.
Probably not what you want.