From 5338d0aa0e6435f97ec0f40a9f0153c00874fe10 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Tue, 5 May 2015 14:23:29 -0400 Subject: [PATCH] lib/mnit: remove `MNIT_SRAND` and use `NIT_SRAND` instead Signed-off-by: Jean Privat --- lib/mnit/mnit_injected_input.nit | 9 +-------- tests/tests.sh | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/lib/mnit/mnit_injected_input.nit b/lib/mnit/mnit_injected_input.nit index 4d6ddfa..da2e33d 100644 --- a/lib/mnit/mnit_injected_input.nit +++ b/lib/mnit/mnit_injected_input.nit @@ -20,7 +20,7 @@ # In order to reproduce executions, the behavior of the application must be deterministic # for a given sequence of inputs. # The main source of differences in executions is caused by the `rand` function, -# Set the environment variable `MNIT_SRAND` to a value to force srand to be initialized with this value. +# Set the environment variable `NIT_SRAND` to a value to force srand to be initialized with this value. # # The input event file is made of event descriptions, one event by line. # @@ -75,13 +75,6 @@ redef class App redef fun setup do - var env = "MNIT_SRAND".environ - if env != "" then - srand_from(env.to_i) - else - srand_from(0) - end - var input = "MNIT_READ_INPUT".environ if input != "" then injected_input_stream = new FileReader.open(input) diff --git a/tests/tests.sh b/tests/tests.sh index 39e0cbd..2769eba 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -21,7 +21,7 @@ export LANG=C export LC_ALL=C export NIT_TESTING=true -export MNIT_SRAND=0 +export NIT_SRAND=0 unset NIT_DIR -- 1.7.9.5