mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
vlib: add unsafe{} wrappers to C. fn calls, to allow compiling with -prod again
This commit is contained in:
parent
6dbc143d67
commit
0af415fa28
6 changed files with 14 additions and 14 deletions
|
@ -46,7 +46,7 @@ pub fn (mut r SysRNG) seed(seed_data []u32) {
|
|||
exit(1)
|
||||
}
|
||||
r.seed = seed_data[0]
|
||||
C.srand(int(r.seed))
|
||||
unsafe { C.srand(int(r.seed)) }
|
||||
}
|
||||
|
||||
// r.default_rand() exposes the default behavior of the system's RNG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue