PebbleOS
Loading...
Searching...
No Matches
Functions

Non-cryptographic hash. More...

Functions

uint32_t hash (const uint8_t *bytes, const uint32_t length)
 Hash bytes with the DJB2 algorithm.
 

Detailed Description

Non-cryptographic hash.

Function Documentation

◆ hash()

uint32_t hash ( const uint8_t *  bytes,
const uint32_t  length 
)

Hash bytes with the DJB2 algorithm.

Parameters
bytesData.
lengthLength of bytes.
Returns
Hash, 5381 for empty data.