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.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);
}
}