Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Fowler–Noll–Vo hash function
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===FNV-0 hash (deprecated)=== The FNV-0 hash differs from the FNV-1 hash only by the initialisation value of the ''hash'' variable:<ref name= FNV_basics /><ref name=FNV0>{{Cite web|url=http://www.isthe.com/chongo/tech/comp/fnv/index.html#FNV-0|title=FNV Hash - FNV-0 Historic not|website=www.isthe.com}}</ref> '''algorithm''' fnv-0 '''is''' ''hash'' := 0 '''for each''' ''byte_of_data'' to be hashed '''do''' ''hash'' := ''hash'' × '''''FNV_prime''''' ''hash'' := ''hash'' [[XOR]] ''byte_of_data'' '''return''' ''hash'' The above pseudocode has the same assumptions that were noted for the FNV-1 pseudocode. A consequence of the initialisation of the hash to 0 is that empty messages and all messages consisting of only the byte 0, regardless of their length, hash to 0.<ref name=FNV0 /> Use of the FNV-0 hash is [[deprecated]] except for the computing of the FNV offset basis for use as the FNV-1 and FNV-1a hash parameters.<ref name= FNV_basics /><ref name=FNV0 />
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)