Generate random string for sessionhash