plain random string generator implementation