aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/rand.rs
diff options
context:
space:
mode:
authorAlex Crichton <[email protected]>2015-01-09 08:07:39 -0800
committerAlex Crichton <[email protected]>2015-01-09 08:12:39 -0800
commit9dfeea6ca9f8527e8be56c208e21a1a48f22f6cf (patch)
treee26eea29b731b0c6df36847923e3a51b5bb048a4 /src/crypto/rand.rs
parentMerge pull request #139 from vhbit/up-master (diff)
downloadrust-openssl-9dfeea6ca9f8527e8be56c208e21a1a48f22f6cf.tar.xz
rust-openssl-9dfeea6ca9f8527e8be56c208e21a1a48f22f6cf.zip
Update to rust master
Diffstat (limited to 'src/crypto/rand.rs')
-rw-r--r--src/crypto/rand.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crypto/rand.rs b/src/crypto/rand.rs
index 92d38f2c..dc338a3d 100644
--- a/src/crypto/rand.rs
+++ b/src/crypto/rand.rs
@@ -1,7 +1,7 @@
use libc::c_int;
use ffi;
-pub fn rand_bytes(len: uint) -> Vec<u8> {
+pub fn rand_bytes(len: usize) -> Vec<u8> {
unsafe {
let mut out = Vec::with_capacity(len);
@@ -21,7 +21,7 @@ mod tests {
#[test]
fn test_rand_bytes() {
- let bytes = rand_bytes(32u);
- println!("{}", bytes);
+ let bytes = rand_bytes(32);
+ println!("{:?}", bytes);
}
}