Skip to content

Commit

Permalink
tests/sleep: use the new Time
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Nov 19, 2024
1 parent f0cce38 commit 804e5ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/sleep/main.jule
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use "std/math/rand"
use "std/time"

fn main() {
mut rand := rand::Rand.New(rand::NewSource(u64(time::Time.Now().Unix())))
mut rand := rand::Rand.New(rand::NewSource(u64(time::Now().Unix())))
mut i := 0
for i < 10; i++ {
dur := time::Duration(i64(time::Millisecond) * rand.I64n(1000))
Expand Down

0 comments on commit 804e5ce

Please sign in to comment.