Module OpenID::Util
In: lib/openid/util.rb
lib/openid/urinorm.rb

Methods

Constants

HAS_URANDOM = File.chardev? '/dev/urandom'

Public Class methods

change the message below to do whatever you like for logging

This code is taken from this post by Eric Lee Green. This implementation is much faster than x ** n % q

Generate a random number less than max. Uses urandom if available.

Sign the given fields from the reply with the specified key. Return [signed, sig]

[Validate]