Skip to content

Commit

Permalink
Removed unnecessary use of libc::int32_t. (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
CGMossa committed Sep 13, 2020
1 parent cc6edc0 commit 68d2b2b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/myrustlib/src/random.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
use libc::int32_t;
use rand::random;

#[no_mangle]
pub extern fn random_number() -> int32_t {
pub extern fn random_number() -> i32 {
let tuple = random::<i32>();
tuple as int32_t
tuple
}

0 comments on commit 68d2b2b

Please sign in to comment.