diff options
Diffstat (limited to 'vendor/libghostty-vt/src/apprt/gtk/ext')
| -rw-r--r-- | vendor/libghostty-vt/src/apprt/gtk/ext/actions.zig | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vendor/libghostty-vt/src/apprt/gtk/ext/actions.zig b/vendor/libghostty-vt/src/apprt/gtk/ext/actions.zig index 3232bc18..6ba9c678 100644 --- a/vendor/libghostty-vt/src/apprt/gtk/ext/actions.zig +++ b/vendor/libghostty-vt/src/apprt/gtk/ext/actions.zig @@ -176,7 +176,11 @@ test "adding actions to an object" { _ = addAsGroup(gtk.Box, box, "test", &actions); } - const expected = std.crypto.random.intRangeAtMost(i32, 1, std.math.maxInt(u31)); + const expected = expected: { + const rng_impl: std.Random.IoSource = .{ .io = testing.io }; + const rng = rng_impl.interface(); + break :expected rng.intRangeAtMost(i32, 1, std.math.maxInt(u31)); + }; const parameter = glib.Variant.newInt32(expected); try testing.expect(box.as(gtk.Widget).activateActionVariant("test.test", parameter) != 0); |
