今日已更新 240 条资讯 | 累计 23823 条内容
关于我们

How useful would be to use this pattern as a non-cryptographic hash?

/u/digital_n01se_ 2026年07月24日 12:55 1 次阅读 来源:Reddit r/programming

"When you multiply 0588235294117647 by 2, 3, 4, 5, …, 16, the same sequence of digits appears in a cyclic order. That is, the digits remain the same but start from a different position, and when they reach the end, they continue again from the beginning." Would be useful for hash tables? or something else that needs rotations/permutations? looks like a reversible data transformation what if instead of 16 values (4 bits), we get a bigger number for 65536 values (16 bits) ChatGPT says it's related to a particular property of 17 (a prime number), but I want to know the opinion of actual programmers, mathematicians and engineers. Thanks submitted by /u/digital_n01se_ [link] [留言]

本文内容来源于互联网,版权归原作者所有
查看原文