From 7f9af847b9b1a3df9849e200cb7ba6869d0175e9 Mon Sep 17 00:00:00 2001 From: Taylor Finnell Date: Tue, 13 Feb 2018 19:39:15 -0500 Subject: [PATCH 1/2] fixes for 0.24.1 --- src/cox.cr | 1 - src/cox/nonce.cr | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/cox.cr b/src/cox.cr index 21c93df..8ed4a9c 100644 --- a/src/cox.cr +++ b/src/cox.cr @@ -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) diff --git a/src/cox/nonce.cr b/src/cox/nonce.cr index a5d8382..9c1af28 100644 --- a/src/cox/nonce.cr +++ b/src/cox/nonce.cr @@ -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 From 5ba3925adc281617be30cf5c7ab0270b2991c2cb Mon Sep 17 00:00:00 2001 From: Taylor Finnell Date: Tue, 13 Feb 2018 19:40:14 -0500 Subject: [PATCH 2/2] change crystal version in shard.yml --- shard.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shard.yml b/shard.yml index bc57988..565710d 100644 --- a/shard.yml +++ b/shard.yml @@ -4,6 +4,6 @@ version: 0.1.0 authors: - Andrew Hamon -crystal: 0.23.0 +crystal: 0.24.1 license: MIT