Skip to content

Commit

Permalink
fix: set random seed to system time for reproducible clones
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Apr 18, 2024
1 parent 4acbe96 commit c4fadfb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bootstrap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
-- The rocks.nvim plugin is already loaded via the vim.opt.runtimepath:append()
-- call in the `init.lua` bootstrapping script.

math.randomseed(os.time())

local config_data = vim.g.rocks_nvim or {}
local install_path = config_data.rocks_path or vim.fs.joinpath(vim.fn.stdpath("data"), "rocks")
local luarocks_binary = config_data.luarocks_binary or vim.fs.joinpath(install_location, "bin", "luarocks")
Expand Down Expand Up @@ -64,7 +66,7 @@ local function set_up_luarocks(install_path)
}):wait()

if sc.code ~= 0 then
notify_output("Cloning luarocks failed.", sc, vim.log.levels.ERROR)
notify_output("Cloning luarocks failed: ", sc, vim.log.levels.ERROR)
return false
end

Expand Down

0 comments on commit c4fadfb

Please sign in to comment.