Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
SecureRandom
/
//opt/alt/ruby21/share/ri/2.1.0/system/SecureRandom/cdesc-SecureRandom.ri
U:RDoc::NormalModule[iI"SecureRandom:EF@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"NThis library is an interface for secure random number generator which is ;TI">suitable for generating session key in HTTP cookies, etc.;T@o; ;[I";It supports 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@S; ; i;I" Examples;T@o; ;[I"Hexadecimal string.;T@o:RDoc::Markup::Verbatim;[I"7p SecureRandom.hex(10) #=> "52750b30ffbc7de3b362" ;TI"7p SecureRandom.hex(10) #=> "92b15d6c8dc4beb5f559" ;TI"=p SecureRandom.hex(13) #=> "39b290146bea6ce975c37cfc23" ;T:@format0o; ;[I"Base64 string.;T@o;;[I"6p SecureRandom.base64(10) #=> "EcmTPZwWRAozdA==" ;TI"6p SecureRandom.base64(10) #=> "KO1nIU+p9DKxGg==" ;TI"6p SecureRandom.base64(12) #=> "7kJSM/MzBJI+75j8" ;T;0o; ;[I"Binary string.;T@o;;[I"Cp SecureRandom.random_bytes(10) #=> "\016\t{\370g\310pbr\301" ;TI"Hp SecureRandom.random_bytes(10) #=> "\323U\030TO\234\357\020\a\337";T;0: @fileI"lib/securerandom.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[ [ [ [[I" class;T[[:public[[I"base64;FI"lib/securerandom.rb;T[I"hex;F@L[I"random_bytes;F@L[I"random_number;F@L[I"urlsafe_base64;F@L[I" uuid;F@L[:protected[ [:private[ [I" instance;T[[;[ [;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ;0;0[@@@@cRDoc::TopLevel