File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 1
1
LICENSE.txt
2
2
README.md
3
+ docs/
3
4
lib/
Original file line number Diff line number Diff line change
1
+ # This file is only for RDoc
2
+
3
+ # Random provides an interface to Ruby's pseudo-random number generator, or
4
+ # PRNG.
5
+ #
6
+ # See also Random::Formatter module that adds convenience methods to generate
7
+ # various forms of random data.
8
+
9
+ class Random
10
+ end
Original file line number Diff line number Diff line change @@ -53,6 +53,8 @@ def bytes(n)
53
53
54
54
private
55
55
56
+ # :stopdoc:
57
+
56
58
# Implementation using OpenSSL
57
59
def gen_random_openssl ( n )
58
60
return OpenSSL ::Random . random_bytes ( n )
@@ -84,6 +86,8 @@ def gen_random_urandom(n)
84
86
end
85
87
end
86
88
89
+ # :startdoc:
90
+
87
91
# Generate random data bytes for Random::Formatter
88
92
public :gen_random
89
93
end
You can’t perform that action at this time.
0 commit comments