Lyricdev
GitHub

struct FixedHasher

pub struct FixedHasher :: [Hasher]

Conforms to Hasher.

Hashes with SipHash-1-3 under a zero key.

The hash is the same in every run, for what must reproduce. Do not use it for input an adversary controls.

Methods

pub static fn new(): FixedHasher
pub mut fn writeByte(b: uint8): void
pub mut fn writeUint(v: uint64): void
pub fn finish(): uint64