Skip to content

Commit ddf2672

Browse files
committed
[DOC] Satisfy RDoc coverage
1 parent 9a99978 commit ddf2672

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

.document

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
LICENSE.txt
22
README.md
3+
docs/
34
lib/

docs/random.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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

lib/securerandom.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ def bytes(n)
5353

5454
private
5555

56+
# :stopdoc:
57+
5658
# Implementation using OpenSSL
5759
def gen_random_openssl(n)
5860
return OpenSSL::Random.random_bytes(n)
@@ -84,6 +86,8 @@ def gen_random_urandom(n)
8486
end
8587
end
8688

89+
# :startdoc:
90+
8791
# Generate random data bytes for Random::Formatter
8892
public :gen_random
8993
end

0 commit comments

Comments
 (0)