From ceb9df83ff254db8684be77966ffd350321e07b8 Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Mon, 25 Mar 2024 15:41:02 +1300 Subject: [PATCH] Remove Random dependency (#254) --- Project.toml | 4 +--- test/test_MOI_wrapper.jl | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Project.toml b/Project.toml index 3eb332f8..6e22d46f 100644 --- a/Project.toml +++ b/Project.toml @@ -13,13 +13,11 @@ MathOptInterface = "b8f27783-ece8-5eb3-8dc8-9495eed66fee" Downloads = "<0.0.1, 1" Libdl = "<0.0.1, 1.6" MathOptInterface = "1" -Random = "<0.0.1, 1.6" Test = "<0.0.1, 1.6" julia = "1.6" [extras] -Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Random", "Test"] +test = ["Test"] diff --git a/test/test_MOI_wrapper.jl b/test/test_MOI_wrapper.jl index 49fe704d..fc498158 100644 --- a/test/test_MOI_wrapper.jl +++ b/test/test_MOI_wrapper.jl @@ -9,7 +9,6 @@ using Xpress using Test import MathOptInterface as MOI -import Random function runtests() for name in names(@__MODULE__; all = true) @@ -1194,8 +1193,7 @@ function callback_knapsack_model() x = MOI.add_variables(model, N) MOI.add_constraints(model, x, MOI.ZeroOne()) MOI.set.(model, MOI.VariablePrimalStart(), x, 0.0) - Random.seed!(1) - item_weights, item_values = rand(N), rand(N) + item_weights, item_values = abs.(cos.(1:N)), abs.(sin.(1:N)) MOI.add_constraint( model, MOI.ScalarAffineFunction(MOI.ScalarAffineTerm.(item_weights, x), 0.0),