diff options
| author | Alex Crichton <[email protected]> | 2015-01-09 08:07:39 -0800 |
|---|---|---|
| committer | Alex Crichton <[email protected]> | 2015-01-09 08:12:39 -0800 |
| commit | 9dfeea6ca9f8527e8be56c208e21a1a48f22f6cf (patch) | |
| tree | e26eea29b731b0c6df36847923e3a51b5bb048a4 /src/crypto/rand.rs | |
| parent | Merge pull request #139 from vhbit/up-master (diff) | |
| download | rust-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.rs | 6 |
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); } } |