Skip to content

Commit

Permalink
Rename Random.raw_seed to urandom. #4876
Browse files Browse the repository at this point in the history
headius committed Mar 19, 2018

Verified

This commit was signed with the committer’s verified signature.
headius Charles Oliver Nutter
1 parent c0ef875 commit 4cf9456
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/org/jruby/RubyRandom.java
Original file line number Diff line number Diff line change
@@ -742,8 +742,8 @@ public static IRubyObject newSeed(ThreadContext context, IRubyObject recv) {
return randomSeed(context.runtime);
}

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

0 comments on commit 4cf9456

Please sign in to comment.