Skip to content

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

@ozomer

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.

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