Skip to content

Commit 9e39ec3

Browse files
committed
fix #872 XorShiftRng cannot clone
1 parent be40059 commit 9e39ec3

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)