Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DJB2a non-cryptographic hash function

License

NotificationsYou must be signed in to change notification settings

sindresorhus/djb2a

Repository files navigation

DJB2a non-cryptographic hash function

DJB2a has good distribution and collisions are rare.

Install

$ npm install djb2a

Usage

importdjb2afrom'djb2a';djb2a('🦄🌈');//=> 1484783307

It returns the hash as a positive integer.

Related

  • fnv1a - FNV-1a non-cryptographic hash function
  • sdbm - SDBM non-cryptographic hash function

[8]ページ先頭

©2009-2025 Movatter.jp