Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
beling committed Oct 22, 2024
1 parent bc13d76 commit 6b6345b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion seedable_hash/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "seedable_hash"
version = "0.1.0"
version = "0.1.1"
authors = ["Piotr Beling <piotr.beling@wmii.uni.lodz.pl>"]
edition = "2021"
license = "MIT OR Apache-2.0"
Expand Down
1 change: 1 addition & 0 deletions seedable_hash/src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ pub fn map48_to_64(hash: u64, n: u64) -> u64 {
((((hash << 16) as u128) * (n as u128)) >> 64) as u64
}*/ // the function is fine, but not needed

/// Maps `hash` to the range `[0, n)` using either [`map64_to_64`] or [`map32_to_32`] (depended on platform).
#[inline(always)]
pub fn map_usize(hash: usize, n: usize) -> usize {
#[cfg(target_pointer_width = "64")] { map64_to_64(hash as u64, n as u64) as usize }
Expand Down

0 comments on commit 6b6345b

Please sign in to comment.