hash: select cuckoo function at run-time