formats
formats copied to clipboard
`SerialNumber::generate` should be infallible
The method is currently fallible: https://github.com/RustCrypto/formats/blob/48eac00018b31215141f98550e342da7d40062d6/x509-cert/src/serial_number.rs#L73-L82
However, it's a trivial wrapper around SerialNumber::generate_with_prefix with arguments that mean it cannot fail:
https://github.com/RustCrypto/formats/blob/48eac00018b31215141f98550e342da7d40062d6/x509-cert/src/serial_number.rs#L98-L105
https://github.com/RustCrypto/formats/blob/48eac00018b31215141f98550e342da7d40062d6/x509-cert/src/serial_number.rs#L48-L57