Function onejoker::cards::hashes::ojh_prime_32cos
source ยท pub fn ojh_prime_32cos(cards: &[Card]) -> Result<u32>
Expand description
wiki | 32-bit prime rank hash
use onejoker::prelude::*;
use onejoker::cards::hashes::*;
let h = Hand::default().init(hand!("Kc","Qd","Jh","Ts","9h"));
assert_eq!(117144257, ojh_prime_32cos(&h[..]).unwrap());