From 95a0e51ba470c412d4ea915ffdb70145a1f2fc70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=20=E6=96=87=E9=9B=A8?= Date: Sun, 23 Jul 2023 14:57:27 +0000 Subject: [PATCH] base16384: bump to version 2.2.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 源 文雨 --- utils/base16384/Makefile | 6 +++--- utils/base16384/test.sh | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/utils/base16384/Makefile b/utils/base16384/Makefile index 90fe988d2..58007f0f3 100644 --- a/utils/base16384/Makefile +++ b/utils/base16384/Makefile @@ -1,16 +1,16 @@ # SPDX-Identifier-License: GPL-3.0-or-later # -# Copyright (C) 2022 源 文雨 +# Copyright (C) 2022-2023 源 文雨 include $(TOPDIR)/rules.mk PKG_NAME:=base16384 -PKG_VERSION:=2.2.2 +PKG_VERSION:=2.2.4 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/fumiama/base16384/tar.gz/v$(PKG_VERSION)? -PKG_HASH:=948da6d9eca3af64123a7df1aa0f71a81e38ab02815ab2218e71a7aface0035e +PKG_HASH:=5701519bd07a58019bc5204ca93194026f2869969cb8bc2563cbcb450f2e80bf PKG_MAINTAINER:=源 文雨 PKG_LICENSE:=GPL-3.0-or-later diff --git a/utils/base16384/test.sh b/utils/base16384/test.sh index fcc070dfb..8839bd512 100644 --- a/utils/base16384/test.sh +++ b/utils/base16384/test.sh @@ -2,10 +2,11 @@ case "$1" in "base16384") + opkg install coreutils-base64 i=1 - while [ $i -le 100 ]; do - s="$(head /dev/urandom | head -c $i)" - if [ "$(echo $s)" != "$(echo $s | base16384 -e - - | base16384 -d - -)" ]; then + while [ $i -le 256 ]; do + s="$(head /dev/urandom | head -c $i | base64 -w 0)" + if [ "$(echo $s)" != "$(echo $s | base64 -d | base16384 -e - - | base16384 -d - - | base64 -w 0)" ]; then exit $i fi i=$( expr $i + 1 )