D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
SecureRandom
/
Filename :
cdesc-SecureRandom.ri
back
Copy
U:RDoc::NormalModule[iI"SecureRandom:ET@0o:RDoc::Markup::Document:@parts[o;;[S:RDoc::Markup::Heading: leveli: textI".Secure random number generator interface.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Paragraph;[I"OThis library is an interface to secure random number generators which are ;TI"?suitable for generating session keys in HTTP cookies, etc.;T@o; ;[I"BYou can use this library in your application by requiring it:;T@o:RDoc::Markup::Verbatim;[I"require 'securerandom' ;T:@format0o; ;[I"?It supports the following secure random number generators:;T@o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0;[o; ;[I"openssl;To;;0;[o; ;[I"/dev/urandom;To;;0;[o; ;[I" Win32;T@o; ;[I"DSecureRandom is extended by the Random::Formatter module which ;TI"#defines the following methods:;T@o;;;;[o;;0;[o; ;[I"alphanumeric;To;;0;[o; ;[I"base64;To;;0;[o; ;[I"choose;To;;0;[o; ;[I"gen_random;To;;0;[o; ;[I"hex;To;;0;[o; ;[I" rand;To;;0;[o; ;[I"random_bytes;To;;0;[o; ;[I"random_number;To;;0;[o; ;[I"urlsafe_base64;To;;0;[o; ;[I" uuid;T@o; ;[I"GThese methods are usable as class methods of SecureRandom such as ;TI"+SecureRandom.hex+.;T@o; ;[I";If a secure random number generator is not available, ;TI"%+NotImplementedError+ is raised.;T: @fileI"lib/securerandom.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[ [U:RDoc::Constant[i I"VERSION;TI"SecureRandom::VERSION;T:public0o;;[o; ;[I"The version;T;@m;0@m@cRDoc::NormalModule0[ [[I" class;T[[;[[I"alphanumeric;TI"lib/securerandom.rb;T[I" bytes;T@~[:protected[ [:private[ [I" instance;T[[;[ [;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ;0;0[@m@mcRDoc::TopLevel