版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122
  1. string-hash
  2. ===========
  3. A fast string hashing function for Node.JS. The particular algorithm is quite
  4. similar to `djb2`, by Dan Bernstein and available
  5. [here](http://www.cse.yorku.ca/~oz/hash.html). Differences include iterating
  6. over the string *backwards* (as that is faster in JavaScript) and using the XOR
  7. operator instead of the addition operator (as described at that page and
  8. because it obviates the need for modular arithmetic in JavaScript).
  9. The hashing function returns a number between 0 and 4294967295 (inclusive).
  10. Thanks to [cscott](https://github.com/cscott) for reminding us how integers
  11. work in JavaScript.
  12. License
  13. -------
  14. To the extend possible by law, The Dark Sky Company, LLC has [waived all
  15. copyright and related or neighboring rights][cc0] to this library.
  16. [cc0]: http://creativecommons.org/publicdomain/zero/1.0/