Function onejoker::cards::hashes::ojh_fnv_32
source ยท pub fn ojh_fnv_32(cards: &[Card]) -> Result<u32>
Expand description
wiki | 32-bit FNV-1a hash
use onejoker::prelude::*;
use onejoker::cards::hashes::*;
let h = Hand::default().init(hand!("Ac","Kc","Qc","Jc","Tc"));
assert_eq!(309437067, ojh_fnv_32(&h[..]).unwrap());