diff --git a/candle-core/src/metal_backend/mod.rs b/candle-core/src/metal_backend/mod.rs index 58aacdfe38..19bac09e15 100644 --- a/candle-core/src/metal_backend/mod.rs +++ b/candle-core/src/metal_backend/mod.rs @@ -2106,7 +2106,7 @@ impl BackendDevice for MetalDevice { } seed_buffer.did_modify_range(metal::NSRange::new(0, 4)); - *self.seed_value.write().unwrap() = seed; + *self.seed_value.write().unwrap() = seed as u64; Ok(()) }