HASH: Initialize hash in digest().

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
This commit is contained in:
Grzegorz Kowal 2021-12-03 10:17:08 -03:00
parent 5792fe60a0
commit c21839e4f1

View File

@ -206,6 +206,7 @@ module hash
!-------------------------------------------------------------------------------
!
hash = 0
select case(hash_id)
case(hash_xxh64)
#ifndef XXHASH
@ -215,8 +216,7 @@ module hash
case(hash_xxh3)
hash = xxh3_lib(buffer, length)
#endif /* XXHASH */
case(hash_none)
hash = 0
case default
end select
return