Gestionnaire de fichiers - Editer - /opt/cpanel/ea-ruby24/root/usr/share/ri/system/SecureRandom/cdesc-SecureRandom.ri
Arrière
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"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@S; ; i;I" Examples;T@o; ;[I")Generate random hexadecimal strings:;T@o;;[ I"require 'securerandom' ;TI" ;TI"7p SecureRandom.hex(10) #=> "52750b30ffbc7de3b362" ;TI"7p SecureRandom.hex(10) #=> "92b15d6c8dc4beb5f559" ;TI"=p SecureRandom.hex(13) #=> "39b290146bea6ce975c37cfc23" ;T;0o; ;[I"$Generate random base64 strings:;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"$Generate random binary strings:;T@o;;[I"Cp SecureRandom.random_bytes(10) #=> "\016\t{\370g\310pbr\301" ;TI"Ip SecureRandom.random_bytes(10) #=> "\323U\030TO\234\357\020\a\337" ;T;0o; ;[I"Generate UUIDs:;T@o;;[I"Dp SecureRandom.uuid #=> "2d931510-d99f-494a-8c67-87feb05e1594" ;TI"Cp SecureRandom.uuid #=> "bad85eb9-0713-4da7-8d36-07a8e4b00eab";T;0: @fileI"lib/securerandom.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[ [ [ [[I" class;T[[:public[[I" bytes;FI"lib/securerandom.rb;T[I"gen_random;F@[[:protected[ [:private[ [I" instance;T[[;[ [;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ;0;0[@O@OcRDoc::TopLevel
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Génération de la page: 0.04 |
proxy
|
phpinfo
|
Réglages