mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
parser: use the [has_globals]
module attribute, remove the parser global_enabled_mods whitelist
(part 2)
This commit is contained in:
parent
f0f5f97e9f
commit
045579fd8a
4 changed files with 7 additions and 13 deletions
|
@ -1,6 +1,7 @@
|
|||
// Copyright (c) 2019-2021 Alexander Medvednikov. All rights reserved.
|
||||
// Use of this source code is governed by an MIT license
|
||||
// that can be found in the LICENSE file.
|
||||
[has_globals]
|
||||
module rand
|
||||
|
||||
import rand.config
|
||||
|
@ -35,9 +36,7 @@ mut:
|
|||
free()
|
||||
}
|
||||
|
||||
__global (
|
||||
default_rng &PRNG
|
||||
)
|
||||
__global default_rng &PRNG
|
||||
|
||||
// new_default returns a new instance of the default RNG. If the seed is not provided, the current time will be used to seed the instance.
|
||||
[manualfree]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue