fix random string from old ruby code