D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Random
/
Filename :
urandom-c.ri
back
Copy
U:RDoc::AnyMethod[iI"urandom:ETI"Random::urandom;TT:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [ I":Returns a string, using platform providing features. ;TI"AReturned value is expected to be a cryptographically secure ;TI"*pseudo-random number in binary form. ;TI"KThis method raises a RuntimeError if the feature provided by platform ;TI""failed to prepare the result.;To:RDoc::Markup::BlankLine o; ; [ I"DIn 2017, Linux manpage random(7) writes that "no cryptographic ;TI"Iprimitive available today can hope to promise more than 256 bits of ;TI"Gsecurity". So it might be questionable to pass size > 32 to this ;TI"method.;T@o:RDoc::Markup::Verbatim; [I">Random.urandom(8) #=> "\x78\x41\xBA\xAF\x7D\xEA\xD8\xEA";T:@format0: @fileI" random.c;T:0@omit_headings_from_table_of_contents_below0I"$Random.urandom(size) -> string ;T0[ I" (p1);T@FI"Random;TcRDoc::NormalClass00