Secure session id generator.