Skip to content

Commit 4cf9456

Browse files
committedMar 19, 2018
Rename Random.raw_seed to urandom. #4876
1 parent c0ef875 commit 4cf9456

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎core/src/main/java/org/jruby/RubyRandom.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -742,8 +742,8 @@ public static IRubyObject newSeed(ThreadContext context, IRubyObject recv) {
742742
return randomSeed(context.runtime);
743743
}
744744

745-
@JRubyMethod(name = "raw_seed", meta = true)
746-
public static IRubyObject rawSeed(ThreadContext context, IRubyObject recv, IRubyObject num) {
745+
@JRubyMethod(name = "urandom", meta = true)
746+
public static IRubyObject urandom(ThreadContext context, IRubyObject recv, IRubyObject num) {
747747
Ruby runtime = context.runtime;
748748
int n = num.convertToInteger().getIntValue();
749749

0 commit comments

Comments
 (0)
Please sign in to comment.