diff options
Diffstat (limited to 'openssl/src/crypto/rand.rs')
| -rw-r--r-- | openssl/src/crypto/rand.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openssl/src/crypto/rand.rs b/openssl/src/crypto/rand.rs index dc338a3d..ba57a8a1 100644 --- a/openssl/src/crypto/rand.rs +++ b/openssl/src/crypto/rand.rs @@ -7,7 +7,9 @@ pub fn rand_bytes(len: usize) -> Vec<u8> { ffi::init(); let r = ffi::RAND_bytes(out.as_mut_ptr(), len as c_int); - if r != 1 as c_int { panic!() } + if r != 1 as c_int { + panic!() + } out.set_len(len); |