mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
js: fix rand build, properly use key values on map, add rand.string (#12020)
This commit is contained in:
7
vlib/rand/wyrand/z_wyrand.c.v
Normal file
7
vlib/rand/wyrand/z_wyrand.c.v
Normal file
@@ -0,0 +1,7 @@
|
||||
module wyrand
|
||||
|
||||
// free should be called when the generator is no longer needed
|
||||
[unsafe]
|
||||
pub fn (mut rng WyRandRNG) free() {
|
||||
unsafe { free(rng) }
|
||||
}
|
||||
Reference in New Issue
Block a user