Package org.jruby.ext.securerandom
Class RubySecureRandom
java.lang.Object
org.jruby.ext.securerandom.RubySecureRandom
securerandom.rb native parts.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IRubyObjectgen_random(ThreadContext context, IRubyObject self, IRubyObject n) private static SecureRandomgetSecureRandom(ThreadContext context) static IRubyObjecthex(ThreadContext context, IRubyObject self) static IRubyObjecthex(ThreadContext context, IRubyObject self, IRubyObject n) private static BigIntegernextBigInteger(SecureRandom random, BigInteger bound, int bits) private static byte[]nextBytes(ThreadContext context, int size) private static byte[]nextBytes(ThreadContext context, IRubyObject n) static IRubyObjectrandom_bytes(ThreadContext context, IRubyObject self) static IRubyObjectrandom_bytes(ThreadContext context, IRubyObject self, IRubyObject n) static IRubyObjectrandom_number(ThreadContext context, IRubyObject self) static IRubyObjectrandom_number(ThreadContext context, IRubyObject self, IRubyObject n) private static RubyBignumrandomBignum(ThreadContext context, Number lower, BigInteger upperExc) private static RubyFloatrandomDouble(ThreadContext context) private static RubyFloatrandomDouble(ThreadContext context, double lower, double upper) private static RubyFixnumrandomFixnum(ThreadContext context, long lower, long upper) static IRubyObjectuuid(ThreadContext context, IRubyObject self)
-
Field Details
-
BI_ADD_BITS
private static final int BI_ADD_BITS- See Also:
-
-
Constructor Details
-
RubySecureRandom
public RubySecureRandom()
-
-
Method Details
-
random_bytes
-
random_bytes
-
gen_random
-
hex
-
hex
-
uuid
-
nextBytes
-
nextBytes
-
random_number
-
random_number
-
randomFixnum
-
randomBignum
-
nextBigInteger
-
randomDouble
-
randomDouble
-
getSecureRandom
-