Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change reset_rand keyword to Union{Nothing, Int} #9

Open
cserteGT3 opened this issue Apr 21, 2020 · 0 comments
Open

change reset_rand keyword to Union{Nothing, Int} #9

cserteGT3 opened this issue Apr 21, 2020 · 0 comments
Labels
breaking Breaking change enhancement New feature or request

Comments

@cserteGT3
Copy link
Owner

Instead of:

function ransac(...., reset_rand=false)
    reset_rand && Random.seed!(1234)
    ...
end

do this:

function ransac(..., reset_rand::Union{Nothing,Int}=nothing)
    reset_rand === nothing || Random.seed!(reset_rand)
    ...
end
@cserteGT3 cserteGT3 added enhancement New feature or request breaking Breaking change labels Apr 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Breaking change enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant