From 57ad2fd47c5e8b50561ebec5e71d8a2584d73666 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Tue, 20 Oct 2020 16:42:33 +0200 Subject: [PATCH] pkg/libhydrogen: bump version --- pkg/libhydrogen/Makefile | 2 +- .../0001-Add-support-for-RIOT-OS.patch | 35 ------------------- 2 files changed, 1 insertion(+), 36 deletions(-) delete mode 100644 pkg/libhydrogen/patches/0001-Add-support-for-RIOT-OS.patch diff --git a/pkg/libhydrogen/Makefile b/pkg/libhydrogen/Makefile index 2a7ae323fc..870cd7cf35 100644 --- a/pkg/libhydrogen/Makefile +++ b/pkg/libhydrogen/Makefile @@ -1,6 +1,6 @@ PKG_NAME = libhydrogen PKG_URL = https://github.com/jedisct1/libhydrogen -PKG_VERSION = 39eb529905ce118b674a7723c0d2b48074b9986d +PKG_VERSION = a4de6e098b5bbbd5389eb8058130f782b53826c3 PKG_LICENSE = ISC include $(RIOTBASE)/pkg/pkg.mk diff --git a/pkg/libhydrogen/patches/0001-Add-support-for-RIOT-OS.patch b/pkg/libhydrogen/patches/0001-Add-support-for-RIOT-OS.patch deleted file mode 100644 index 2bc841db0f..0000000000 --- a/pkg/libhydrogen/patches/0001-Add-support-for-RIOT-OS.patch +++ /dev/null @@ -1,35 +0,0 @@ -From 59ba85698386d2d55c86a00557169f3f5efad502 Mon Sep 17 00:00:00 2001 -From: Silke Hofstra -Date: Thu, 20 Sep 2018 16:32:40 +0200 -Subject: [PATCH] Add support for RIOT OS - ---- - impl/random.h | 12 ++++++++++++ - 1 file changed, 12 insertions(+) - -diff --git a/impl/random.h b/impl/random.h -index f2ca1a4..2c09e02 100644 ---- a/impl/random.h -+++ b/impl/random.h -@@ -99,6 +99,18 @@ hydro_random_init(void) - return 0; - } - -+#elif defined(RIOT_VERSION) && !defined(__unix__) -+ -+#include -+ -+static int -+hydro_random_init(void) -+{ -+ random_bytes(hydro_random_context.state, sizeof hydro_random_context.state); -+ hydro_random_context.counter = ~LOAD64_LE(hydro_random_context.state); -+ return 0; -+} -+ - #elif defined(_WIN32) - - #include --- -2.18.0 -