class OauthUtil

def nonce

ref http://snippets.dzone.com/posts/show/491
openssl::random_bytes returns non-word chars, which need to be removed. using alt method to get length
def nonce
  Array.new( 5 ) { rand(256) }.pack('C*').unpack('H*').first
end