Bug: SecureRandom is not required in the encryption module
Qqwy opened this issue · comments
This breaks:
> key = Eth::Key.new
> Eth::Key.encrypt key, 'mypassword'
NameError: uninitialized constant Eth::Key::Encrypter::SecureRandom
Did you mean? SecurityError
What fixes it, is to manually require 'securerandom'
before making this call. Of course, instead of manually doing this, this issue should be resolved by placing this require statement in the proper module inside the gem.