Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions sqlite.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3729,8 +3729,9 @@ test "sqlite: create aggregate function with no aggregate context" {
var db = try getTestDb();
defer db.deinit();

const instant = std.time.Instant.now() catch .{ .timestamp = 2048 };
var rand = std.Random.DefaultPrng.init(@intCast(instant.timestamp));
const clock = std.Io.Clock.boot;
const timestamp = clock.now(std.testing.io) catch std.Io.Timestamp.zero;
var rand = std.Random.DefaultPrng.init(@intCast(timestamp.toMilliseconds()));

// Create an aggregate function working with a MyContext

Expand Down Expand Up @@ -3791,8 +3792,9 @@ test "sqlite: create aggregate function with an aggregate context" {
var db = try getTestDb();
defer db.deinit();

const instant = std.time.Instant.now() catch .{ .timestamp = 2048 };
var rand = std.Random.DefaultPrng.init(@intCast(instant.timestamp));
const clock = std.Io.Clock.boot;
const timestamp = clock.now(std.testing.io) catch std.Io.Timestamp.zero;
var rand = std.Random.DefaultPrng.init(@intCast(timestamp.toMilliseconds()));

try db.createAggregateFunction(
"mySum",
Expand Down