From f9de09f2d782b4a75fa73c5e6929e7fe1eb228aa Mon Sep 17 00:00:00 2001 From: Didactic Drunk <1479616+didactic-drunk@users.noreply.github.com> Date: Thu, 18 Mar 2021 11:11:19 -0700 Subject: [PATCH] crystal backwards compatibility --- src/sodium/digest/blake2b.cr | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sodium/digest/blake2b.cr b/src/sodium/digest/blake2b.cr index 8fe9de9..6f0bfd7 100644 --- a/src/sodium/digest/blake2b.cr +++ b/src/sodium/digest/blake2b.cr @@ -17,6 +17,8 @@ module Sodium::Digest # digest.hexfinal => String # ``` class Blake2b < ::Digest + {{ Digest.has_constant?(:Base) ? "::Base" : "" }} # Crystal < 0.36 compatible + include Wipe Log = ::Log.for self