mirror of
https://github.com/hohn/sarif-cli.git
synced 2025-12-16 09:13:04 +01:00
previously relied on assumption: naming like: <org>/<project> in repositoryUri now just uses full repositoryUri
8 lines
225 B
Python
8 lines
225 B
Python
from hashlib import blake2b
|
|
|
|
# takes a bytes object and outputs an 8 byte hash
|
|
def hash_unique(item_to_hash):
|
|
h = blake2b(digest_size = 8)
|
|
h.update(item_to_hash)
|
|
return int.from_bytes(h.digest(), byteorder='big')
|