Fixes a bug with the random string generation