mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
time: rewrite unix() function
This commit is contained in:
parent
67912c692b
commit
286a0a1371
8 changed files with 186 additions and 109 deletions
|
@ -2,7 +2,7 @@ import rand
|
|||
import time
|
||||
|
||||
fn main() {
|
||||
rand.seed(time.now().uni)
|
||||
rand.seed(time.now().unix)
|
||||
|
||||
for _ in 0..10 {
|
||||
println('${rand.next(255)}.${rand.next(255)}.${rand.next(255)}.${rand.next(255)}')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue