diff --git a/kernel/arch/i386/hash.nim b/kernel/arch/i386/hash.nim index e3d5864..64f1e4b 100644 --- a/kernel/arch/i386/hash.nim +++ b/kernel/arch/i386/hash.nim @@ -6,4 +6,8 @@ proc fnv1a*(data: varargs[uint8]): uint32 = result = FNVOffsetBasis for i in data: result = result xor i - result = result * FNVPrime \ No newline at end of file + result = result * FNVPrime + +proc fnv1aCompound*(base: uint32, addition: uint8): uint32 = + result = base xor addition + result = result * FNVPrime \ No newline at end of file