From d7c74d3ebbd8ef46a9130f176b53c3b79dce0116 Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Fri, 1 Oct 2021 20:16:47 +0200 Subject: [PATCH] Fixed unit test initialization value for -m 11500 --- tools/test_modules/m11500.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/test_modules/m11500.pm b/tools/test_modules/m11500.pm index b18afd5f9..597fa1457 100644 --- a/tools/test_modules/m11500.pm +++ b/tools/test_modules/m11500.pm @@ -17,12 +17,12 @@ sub module_generate_hash my $word = shift; my $salt = shift; - $salt = "00000000"; + my $iv = hex ($salt); my $ctx = Digest::CRC->new ( width => 32, - init => hex ($salt), + init => $iv, xorout => 0xffffffff, refout => 1, poly => 0x04c11db7, @@ -32,7 +32,7 @@ sub module_generate_hash $ctx->add ($word); - my $hash = sprintf ("%s:%s", $ctx->hexdigest (), $salt); + my $hash = sprintf ("%s:%s", $ctx->hexdigest (), $salt); return $hash; }