[riot-notifications] [RIOT] Bloom bytes (#176)

Oleg Hahm notifications at github.com
Mon Aug 26 23:10:28 CEST 2013


> @@ -157,20 +98,21 @@ static inline unsigned int dek_hash(const char *str, unsigned int len)
>   * NOTE
>   * For a more fully featured and modern version of this hash, see fnv32.c
>   */
> -static inline unsigned int fnv_hash(const char *str)
> -{
> -#define FNV_PRIME 0x811C9DC5
> -    unsigned int hash;
> -    unsigned int c;
> -
> -    hash = 0;
> -    c    = 0;
> +uint32_t fnv_hash(const uint8_t *buf, size_t len);

Doxygen documentation...

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/176/files#r5990050
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20130826/aa5e6950/attachment.html>


More information about the notifications mailing list