HASH: Initialize hash in digest().
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
This commit is contained in:
parent
5792fe60a0
commit
c21839e4f1
@ -206,6 +206,7 @@ module hash
|
|||||||
|
|
||||||
!-------------------------------------------------------------------------------
|
!-------------------------------------------------------------------------------
|
||||||
!
|
!
|
||||||
|
hash = 0
|
||||||
select case(hash_id)
|
select case(hash_id)
|
||||||
case(hash_xxh64)
|
case(hash_xxh64)
|
||||||
#ifndef XXHASH
|
#ifndef XXHASH
|
||||||
@ -215,8 +216,7 @@ module hash
|
|||||||
case(hash_xxh3)
|
case(hash_xxh3)
|
||||||
hash = xxh3_lib(buffer, length)
|
hash = xxh3_lib(buffer, length)
|
||||||
#endif /* XXHASH */
|
#endif /* XXHASH */
|
||||||
case(hash_none)
|
case default
|
||||||
hash = 0
|
|
||||||
end select
|
end select
|
||||||
|
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user