diff options
| author | Steven Fackler <[email protected]> | 2015-12-15 21:51:20 -0800 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2015-12-15 21:51:20 -0800 |
| commit | 157e6aa961a7f21b522fa4e282737e8a3ba67d7f (patch) | |
| tree | 0b4e3ebd2138ea83532055da3517da8b2ed665ff /openssl/src/crypto/rand.rs | |
| parent | Fix bounds on ssl_read and ssl_write (diff) | |
| download | rust-openssl-157e6aa961a7f21b522fa4e282737e8a3ba67d7f.tar.xz rust-openssl-157e6aa961a7f21b522fa4e282737e8a3ba67d7f.zip | |
Rustfmt
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); |