From 7f9af847b9b1a3df9849e200cb7ba6869d0175e9 Mon Sep 17 00:00:00 2001 From: Taylor Finnell Date: Tue, 13 Feb 2018 19:39:15 -0500 Subject: [PATCH] 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