Skip to content

Commit a982d2c

Browse files
committed
make SecureRandom.rand public
1 parent d6e15b8 commit a982d2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/org/jruby/ext/securerandom/RubySecureRandom.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ private static byte[] nextBytes(ThreadContext context, int size) {
9393
return bytes;
9494
}
9595

96-
@JRubyMethod(meta = true)
96+
@JRubyMethod(meta = true, name = {"random_number", "rand"})
9797
public static IRubyObject random_number(ThreadContext context, IRubyObject self) {
9898
return randomDouble(context);
9999
}
100100

101-
@JRubyMethod(meta = true)
101+
@JRubyMethod(meta = true, name = {"random_number", "rand"})
102102
public static IRubyObject random_number(ThreadContext context, IRubyObject self, IRubyObject n) {
103103
if (n instanceof RubyFixnum) {
104104
final long bound = ((RubyFixnum) n).getLongValue();

0 commit comments

Comments
 (0)