/* tdb_hash(): based on the hash agorithm from gdbm, via tdb (from module-init-tools)  */
static unsigned int tdb_hash(const char *name)
/* tdb_hash(): based on the hash agorithm from gdbm, via tdb (from module-init-tools)  */
static unsigned int tdb_hash(const char *name)
{
    unsigned value;
    unsigned   i;
    for (value = 0x238F13AF * strlen(name), i=0; name[i]; i++)
        value = (value + (((const unsigned char *)name)[i] << (i*5 % 24)));
    return (1103515243 * value + 12345);
}