Registry / crypto / webget-ruby-secure-random

webget-ruby-secure-random

JSON →
library1.2.1rbrubygemsunverified

Provides a secure random number method for Ruby 1.8.6 environments.

gem install webget_ruby_secure_random
INSTALL
IMPORT
SIG · WEBGET-RUBY-SECURE
W
webget-ruby-secure-random
cryptorubyv1.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

WebgetRubySecureRandom
require 'webget_ruby_secure_random'

Generate a secure random number

require 'webget_ruby_secure_random' random_num = WebgetRubySecureRandom.random_number(100) puts random_num
Debug
Known issues
breakingDesigned for Ruby 1.8.6; may not work on newer Ruby versions.
fix
Use SecureRandom from Ruby's standard library for Ruby 1.9+.
affects: >= 1.9.0
Upgrade
Version history
1.2.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
32 hits · last 30 days
node
28
Resources
webget-ruby-secure-random — gem install webget-ruby-secure-random · libregistry