I don't think we should be using `rand()` in a test case. These two cases are just checking that only a string of exactly 24 valid characters is accepted, so really any string of 23 and 25 characters should suffice.