g_str_hash: switch to using DJB hash
authorRyan Lortie <desrt@desrt.ca>
Wed, 17 Nov 2010 17:19:54 +0000 (12:19 -0500)
committerRyan Lortie <desrt@desrt.ca>
Wed, 17 Nov 2010 17:24:53 +0000 (12:24 -0500)
commit354d655ba8a54b754cb5a3efb42767327775696c
treed5a1d94c3e9b237a8f174d57ec27e957a2d9427e
parentf50a99e7827f4b906cfe9ced27096b047f65ac80
g_str_hash: switch to using DJB hash

This is the same as what we were already doing with 2 changes:

  - use an initial value of 5381 instead of 0

  - multiply by 33 in each round instead of 31
glib/gstring.c