entromatica 2.3.0

Entromatica is a library for constructing, simulating and analyzing markov chains.
Documentation
1
2
3
4
5
6
7
8
9
10
use std::{
    collections::hash_map::DefaultHasher,
    hash::{Hash, Hasher},
};

pub(crate) fn hash(hashable: &impl Hash) -> u64 {
    let mut hasher = DefaultHasher::new();
    hashable.hash(&mut hasher);
    hasher.finish()
}