def _generate_token(self):
        salt = str(randrange(0, _MAX_CSRF_KEY)).encode('utf-8')
        return hashlib.sha1(salt).hexdigest()
Generates a token with randomly salted SHA1. Returns a string.
dataset/ETHPy150Open maxcountryman/flask-seasurf/flask_seasurf.py/SeaSurf._generate_token