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

tests: use new array init syntax, fix mutability

This commit is contained in:
Alexander Medvednikov
2020-04-26 11:56:27 +02:00
parent 0641a31fe0
commit 153ac230ec
7 changed files with 23 additions and 17 deletions

View File

@@ -16,7 +16,7 @@ pub fn next(max int) int {
// rand_r returns a pseudo-random number;
// writes a result value to the seed argument.
pub fn rand_r(seed mut int) int {
pub fn rand_r(seed &int) int {
ns := *seed * 1103515245 + 12345
(*seed) = ns
return ns & 0x7fffffff