Fix session creation in systems without os.urandom
Merge branch '0.9-maintenance'