From: Tanaka Akira Date: 2010-04-21T21:59:17+09:00 Subject: [ruby-core:29689] Re: [Bug #3104](Closed) Random: seeding issues 2010/4/21 Yusuke Endoh : >> 1) Seeding sometimes ignores the high bit of seed data. >> >> Random.new((1<<64)-1).rand == Random.new((1 << 65) -1).rand >> # => true, should be false > > I really agree that this is uncool. > Incidentally, I prefer removing MSB to current implementation. I guess it is worse in the sense of the reporter. Probably it causes Random.new(2**32).rand == Random.new(2**33).rand == Random.new(2**34).rand == ... Random.new(2**63).rand. -- Tanaka Akira