CVE-2013-6401: Change hash function, randomize hashes

Thanks to Florian Weimer and Eric Sesterhenn for reporting, reviewing
and testing.
 static JSON_INLINE void list_init(list_t *list)
 {
    list->next = list;
    list->prev = list;
}

 static JSON_INLINE void list_init(list_t *list)
 {
    list->next = list;
    list->prev = list;
}
