Skip to content

Commit fbf67c9

Browse files
committed
Corrected ffi signature for set_sed and get_seed functions
1 parent 5ad8866 commit fbf67c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/data/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ extern {
4040
fn af_randu(out: MutAfArray, ndims: c_uint, dims: *const DimT, afdtype: uint8_t) -> c_int;
4141
fn af_randn(out: MutAfArray, ndims: c_uint, dims: *const DimT, afdtype: uint8_t) -> c_int;
4242

43-
fn af_set_seed(seed: Uintl);
44-
fn af_get_seed(seed: *mut Uintl);
43+
fn af_set_seed(seed: Uintl) -> c_int;
44+
fn af_get_seed(seed: *mut Uintl) -> c_int;
4545

4646
fn af_identity(out: MutAfArray, ndims: c_uint, dims: *const DimT, afdtype: uint8_t) -> c_int;
4747
fn af_diag_create(out: MutAfArray, arr: AfArray, num: c_int) -> c_int;

0 commit comments

Comments
 (0)