Backwards compatibility
Backwards compatibility

Just in case there has been change in how function random_hex works, added check if returned string is byte string and only then we transform it to str.
Bouke/django-two-factor-auth,Bouke/django-two-factor-auth