Validate CryptoUtils random string lengths
The `generateRandomString` function in `CryptoUtils` currently accepts any length value, leading to potential low-level errors with invalid inputs like negative or fractional lengths. This issue requires adding validation to ensure only non-negative safe integer lengths are accepted, providing a clear contract for callers and preventing unexpected behavior.