'Generates CSRF token.
Inspired by this article:
http://blog.ptsecurity.com/2012/10/random-number-security-in-python.html
:returns:
:class:`str` Random unguessable string.'

@staticmethod
def csrf_generator(secret):

    hashed = hashlib.md5((uuid.uuid4().bytes + six.b(secret))).hexdigest()
    span = 5
    shift = random.randint(0, span)
    return hashed[shift:((shift - span) - 1)]
