What integer hash function are good that accepts an integer hash key?

前端 未结 11 1625
孤街浪徒
孤街浪徒 2020-11-22 17:23

What integer hash function are good that accepts an integer hash key?

11条回答
  •  死守一世寂寞
    2020-11-22 17:45

    The answer depends on a lot of things like:

    • Where do you intend to employ it?
    • What are you trying to do with the hash?
    • Do you need a crytographically secure hash function?

    I suggest that you take a look at the Merkle-Damgard family of hash functions like SHA-1 etc

提交回复
热议问题