Issue #1847 has been updated by Roger Pack. Hmm. For me: >> require 'securerandom' >> puts SecureRandom.random_number(100000) 89152 Seems to always work for mingw 1.9.1, 1.9.2 What compiler? Do you have any extra encoding information set somewhere that I don't? =r ---------------------------------------- http://redmine.ruby-lang.org/issues/show/1847 ---------------------------------------- http://redmine.ruby-lang.org