From 75a2da835bacd4ce56a558e6c83f481668c4a181 Mon Sep 17 00:00:00 2001 From: "femtocleaner[bot]" Date: Tue, 21 Aug 2018 16:11:33 +0000 Subject: [PATCH] Fix deprecations --- src/misc/benchmark.jl | 4 ++-- test/data/partitions.jl | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/misc/benchmark.jl b/src/misc/benchmark.jl index 0fecedb..619189a 100644 --- a/src/misc/benchmark.jl +++ b/src/misc/benchmark.jl @@ -26,12 +26,12 @@ function benchmark() # Run once, to force compilation. println("-- First run --") - srand(20150326) + Random.seed!(20150326) @time kpax3mcmc(x, partition, settings) # Run a second time, with profiling. println("-- Second run --") - srand(20150326) + Random.seed!(20150326) Profile.init(delay=0.01) Profile.clear() Profile.clear_malloc_data() diff --git a/test/data/partitions.jl b/test/data/partitions.jl index 4082d2a..e01394b 100644 --- a/test/data/partitions.jl +++ b/test/data/partitions.jl @@ -1,7 +1,5 @@ # This file is part of Kpax3. License is MIT. -__precompile__(true) - module TestPartition export Partition