Copy-paste from rt.util.hash. :) What I must write here?