Skip to content

Commit

Permalink
fix tests: don't create default rand cfunction during precompilation
Browse files Browse the repository at this point in the history
  • Loading branch information
benlorenz committed Jan 24, 2024
1 parent 7f056f9 commit 0057471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Polymake.jl
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ include(libpolymake_julia_jll.generate_deps_tree)
include(type_translator)

_pm_rand_helper() = rand(Int64)
const _default_rand_helper = CxxWrap.@safe_cfunction(_pm_rand_helper, Int64, ())

function set_rand_source()
_default_rand_helper = CxxWrap.@safe_cfunction(_pm_rand_helper, Int64, ())
set_rand_source(_default_rand_helper)
end

Expand Down

0 comments on commit 0057471

Please sign in to comment.