aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/rand.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/rand.rs')
-rw-r--r--src/crypto/rand.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/rand.rs b/src/crypto/rand.rs
index 5f94c93c..92d38f2c 100644
--- a/src/crypto/rand.rs
+++ b/src/crypto/rand.rs
@@ -7,7 +7,7 @@ pub fn rand_bytes(len: uint) -> Vec<u8> {
ffi::init();
let r = ffi::RAND_bytes(out.as_mut_ptr(), len as c_int);
- if r != 1 as c_int { fail!() }
+ if r != 1 as c_int { panic!() }
out.set_len(len);