diff --git a/src/DeIdentification.jl b/src/DeIdentification.jl index acdc061..d93e717 100644 --- a/src/DeIdentification.jl +++ b/src/DeIdentification.jl @@ -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 diff --git a/src/config_builder.jl b/src/config_builder.jl index 8270df0..e3b9175 100644 --- a/src/config_builder.jl +++ b/src/config_builder.jl @@ -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") diff --git a/src/de_identify.jl b/src/de_identify.jl index eb5f0cb..21ca65d 100644 --- a/src/de_identify.jl +++ b/src/de_identify.jl @@ -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)