Support MT instance valiables and activate mruby-random #1077

Merged
merged 2 commits into from Mar 27, 2013

2 participants

@matsumoto-r
mruby member
p rand == Random.rand # => false

srand 1
a = Random.rand
Random.srand 1
b = rand
p a == b              # => true

r = Random.new 1
s = Random.new 1
p r.rand == s.rand    # => true

r.srand 1
p r.rand == s.rand    # => false

s.srand 1
s.rand
p r.rand == s.rand    # => true
@matz matz merged commit d4bb9b4 into mruby:master Mar 27, 2013

1 check passed

Details default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment