| Crates.io | smchash |
| lib.rs | smchash |
| version | 0.1.1 |
| created_at | 2025-12-25 14:43:21.383442+00 |
| updated_at | 2025-12-25 14:57:13.959702+00 |
| description | High-performance hash function passing all 188 SMHasher3 tests |
| homepage | |
| repository | https://github.com/scalecode-solutions/smcHash |
| max_upload_size | |
| id | 2004617 |
| size | 30,428 |
High-performance hash function passing all 188 SMHasher3 quality tests.
no_std compatible: Works in embedded environmentssmc_rand() passes BigCrush and PractRanduse smchash::{smchash, smchash_seeded, smc_rand};
// Basic hashing
let hash = smchash(b"Hello, World!");
// Seeded hashing
let hash = smchash_seeded(b"Hello", 12345);
// PRNG (passes BigCrush/PractRand)
let mut seed = 42u64;
let random = smc_rand(&mut seed);
smchash(data: &[u8]) -> u64 - Hash with default seedsmchash_seeded(data: &[u8], seed: u64) -> u64 - Hash with custom seedsmchash_secret(data: &[u8], seed: u64, secret: &[u64; 9]) -> u64 - Hash with custom secretssmc_rand(seed: &mut u64) -> u64 - PRNGMIT License - Copyright 2025 ScaleCode Solutions