fixes for 0.24.1

master
Taylor Finnell 2018-02-13 19:39:15 -05:00
parent 057f093a32
commit 7f9af847b9
2 changed files with 2 additions and 3 deletions

View File

@ -1,5 +1,4 @@
require "./cox/*"
require "secure_random"
module Cox
def self.encrypt(data, nonce : Nonce, recipient_public_key : PublicKey, sender_secret_key : SecretKey)

View File

@ -1,5 +1,5 @@
require "./lib_sodium"
require "secure_random"
require "random/secure"
module Cox
class Nonce
@ -14,7 +14,7 @@ module Cox
end
def self.new
new(SecureRandom.random_bytes(NONCE_LENGTH))
new(Random::Secure.random_bytes(NONCE_LENGTH))
end
def pointer