mirror of
https://github.com/vlang/v.git
synced 2025-09-14 23:12:33 +03:00
all: various fixes for [heap]/auto-heap handling (#10033)
This commit is contained in:
parent
5b4eef8010
commit
d26ac5692e
37 changed files with 279 additions and 149 deletions
|
@ -68,7 +68,7 @@ pub fn get_current_rng() &PRNG {
|
|||
// should be restored if work with the custom RNG is complete. It is not necessary to restore if the
|
||||
// program terminates soon afterwards.
|
||||
pub fn set_rng(rng &PRNG) {
|
||||
default_rng = rng
|
||||
default_rng = unsafe { rng }
|
||||
}
|
||||
|
||||
// seed sets the given array of `u32` values as the seed for the `default_rng`. The default_rng is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue