chanced / navajo

A cryptographic toolkit for Rust
Apache License 2.0
1 stars 0 forks source link

navajo: Remove or reduce usage of unwraps #30

Open chanced opened 1 year ago

chanced commented 1 year ago

Almost all unwraps deal with random number generation.

Remove those unwraps and return errors. It'll clutter the interface a bit. While it is incredibly unlikely that random will fail after it has succeeded, it is still possible.