# SecurerRandomer — Monkeypatch Ruby's SecureRandom with RbNaCl

**URL:** <https://metaruby.com/t/securerrandomer-monkeypatch-rubys-securerandom-with-rbnacl/512>\
**Category:** Ruby Chat\
**Created:** [May 16, 2016, 9:16pm UTC](https://metaruby.com/t/securerrandomer-monkeypatch-rubys-securerandom-with-rbnacl/512 "2016-05-16T21:16:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mwpastore](https://metaruby.com/letter_avatar_proxy/v4/letter/m/e19b73/32.png) [@mwpastore](https://metaruby.com/u/mwpastore)\
**Post date:** [May 16, 2016, 9:16pm UTC](https://metaruby.com/t/securerrandomer-monkeypatch-rubys-securerandom-with-rbnacl/512/1 "2016-05-16T21:16:33Z")

</div>

_(This announcement was crossposted to /r/ruby, so my apologies if you’re seeing it again.)_

Hi folks,

I’ve released a new gem that monkeypatches SecureRandom to use RbNaCl for random bytes instead of the default method, which is OpenSSL in MRI/YARV. If you haven’t been following the debate about MRI’s use of OpenSSL for this purpose, [here](https://bugs.ruby-lang.org/issues/9569) is the Ruby bug discussion, and [here](https://news.ycombinator.com/item?id=11624890) is the corresponding thread on Hacker News. As the README explains, this gem is a temporary solution until the situation is resolved.

[SecurerRandomer on RubyGems](https://rubygems.org/gems/securer_randomer)  
[SecurerRandomer on GitHub](https://github.com/mwpastore/securer_randomer)

Please let me know if you have any questions or feedback!

Thank you,

Mike
