diff options
-rw-r--r-- | ext/openssl/ossl_rand.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/openssl/ossl_rand.c b/ext/openssl/ossl_rand.c index ec983624..688c525a 100644 --- a/ext/openssl/ossl_rand.c +++ b/ext/openssl/ossl_rand.c @@ -41,13 +41,13 @@ ossl_rand_seed(VALUE self, VALUE str) * The +entropy+ argument is (the lower bound of) an estimate of how much * randomness is contained in +str+, measured in bytes. * - * Example: + * === Example * * pid = $$ * now = Time.now * ary = [now.to_i, now.nsec, 1000, pid] - * OpenSSL::Random.add(ary.join("").to_s, 0.0) - * OpenSSL::Random.seed(ary.join("").to_s) + * OpenSSL::Random.add(ary.join, 0.0) + * OpenSSL::Random.seed(ary.join) */ static VALUE ossl_rand_add(VALUE self, VALUE str, VALUE entropy) @@ -101,10 +101,10 @@ ossl_rand_write_file(VALUE self, VALUE filename) * Generates +string+ with +length+ number of cryptographically strong * pseudo-random bytes. * - * Example: + * === Example * * OpenSSL::Random.random_bytes(12) - * => "..." + * #=> "..." */ static VALUE ossl_rand_bytes(VALUE self, VALUE len) @@ -134,10 +134,10 @@ ossl_rand_bytes(VALUE self, VALUE len) * Pseudo-random byte sequences generated by ::pseudo_bytes will be unique if * they are of sufficient length, but are not necessarily unpredictable. * - * Example: + * === Example * * OpenSSL::Random.pseudo_bytes(12) - * => "..." + * #=> "..." */ static VALUE ossl_rand_pseudo_bytes(VALUE self, VALUE len) |