Skip to content

Commit 8b02957

Browse files
bors[bot]Shuenhoy
andauthored
Merge #878
878: fix #872 XorShiftRng cannot clone r=Marwes a=Shuenhoy Co-authored-by: Haoran SUN <[email protected]>
2 parents be40059 + 9e39ec3 commit 8b02957

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/std_lib/random.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ use crate::vm::{
1515

1616
#[derive(Clone, Debug, Userdata, Trace, VmType)]
1717
#[gluon(vm_type = "std.random.XorShiftRng")]
18+
#[gluon_userdata(clone)]
1819
#[gluon(crate_name = "::vm")]
1920
#[gluon_trace(skip)]
2021
struct XorShiftRng(self::rand_xorshift::XorShiftRng);

0 commit comments

Comments
 (0)