Skip to content

Commit

Permalink
Merge pull request #63 from Mounika-Thakkallapally/versionupdate
Browse files Browse the repository at this point in the history
removed make_seed - no longer available in base pacakge
  • Loading branch information
Mounika-Thakkallapally authored Nov 20, 2024
2 parents 4be2140 + 9441231 commit 1385fe6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/DeIdentification.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Tables
import CSV
import Dates
import SHA: bytes2hex, sha256
import Random: shuffle, randstring, seed!, make_seed
import Random: shuffle, randstring, seed!
import Memento
import DataStructures: OrderedDict
import REPL
Expand Down
2 changes: 1 addition & 1 deletion src/config_builder.jl
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ function build_config(data_dir::String, config_file::String)
println("---------------------------------------")

yml["project"] = user_input("Project name [$(basename(data_dir))]: ", basename(data_dir))
seed = make_seed()[1]
seed = rand(UInt32)
yml["project_seed"] = user_input("Project seed [$seed]: (used for reproducibility) ", string(seed))
yml["max_dateshift_days"] = user_input("Maximum Date Shift Days [30]: ", "30")
yml["dateshift_years"] = user_input("Years to add to all dates [0]: ", "0")
Expand Down
2 changes: 1 addition & 1 deletion src/de_identify.jl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function ProjectConfig(cfg_file::String)
pk = Symbol(cfg["primary_id"])
dateformat = Dates.DateFormat(get(cfg, "date_format", "y-m-dTH:M:S.s"))

seed = get(_ -> make_seed()[1], cfg, "project_seed")
seed = get(_ -> rand(UInt32), cfg, "project_seed")
maxdays = get(cfg, "max_dateshift_days", 30)
shiftyears = get(cfg, "dateshift_years", 0)

Expand Down

0 comments on commit 1385fe6

Please sign in to comment.