Skip to content

Hash function works directly on utf8 string with charCodeAt that may return values greater than 256 #8

Description

@ozomer

I don't think that the original djb hash function was intended to work on arrays with values > 256.
Best solution is to convert the key to a buffer first.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions