Skip to content

Commit 68d2b2b

Browse files
authored
Removed unnecessary use of libc::int32_t. (#7)
1 parent cc6edc0 commit 68d2b2b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/myrustlib/src/random.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
use libc::int32_t;
21
use rand::random;
32

43
#[no_mangle]
5-
pub extern fn random_number() -> int32_t {
4+
pub extern fn random_number() -> i32 {
65
let tuple = random::<i32>();
7-
tuple as int32_t
6+
tuple
87
}

0 commit comments

Comments
 (0)