1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

rand: fix wrong function signature (#9808)

This commit is contained in:
div72
2021-04-21 12:20:55 +03:00
committed by GitHub
parent 51258923d7
commit dd00c79861
2 changed files with 9 additions and 4 deletions

View File

@@ -91,7 +91,7 @@ pub fn (mut rng PCG32RNG) u64n(max u64) u64 {
// u32_in_range returns a pseudorandom 32-bit unsigned `u32` in range `[min, max)`.
[inline]
pub fn (mut rng PCG32RNG) u32_in_range(min u64, max u64) u64 {
pub fn (mut rng PCG32RNG) u32_in_range(min u32, max u32) u32 {
if max <= min {
eprintln('max must be greater than min')
exit(1)