From d097412330bd2a9c0481b74af7051e317e33be23 Mon Sep 17 00:00:00 2001 From: Zhijux Fan Date: Thu, 13 Dec 2018 16:08:19 +0800 Subject: [PATCH] BaseTools:Solve the data sorting problem use python3 set PYTHONHASHSEED Specifying the value 0 will disable hash randomization. Cc: Bob Feng Cc: Liming Gao Cc: Yonghong Zhu Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhiju.Fan Tested-by: Laszlo Ersek Tested-by: Ard Biesheuvel Reviewed-by: Liming Gao Reviewed-by: Bob Feng --- BaseTools/toolsetup.bat | 1 + edksetup.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/BaseTools/toolsetup.bat b/BaseTools/toolsetup.bat index b58560d4d7..1cac3105c2 100755 --- a/BaseTools/toolsetup.bat +++ b/BaseTools/toolsetup.bat @@ -274,6 +274,7 @@ goto check_build_environment echo. :check_build_environment + set PYTHONHASHSEED=0 if defined BASETOOLS_PYTHON_SOURCE goto VisualStudioAvailable if not defined BASE_TOOLS_PATH ( diff --git a/edksetup.sh b/edksetup.sh index 93d6525758..3dee8c5d61 100755 --- a/edksetup.sh +++ b/edksetup.sh @@ -77,7 +77,7 @@ function SetWorkspace() # Set $WORKSPACE # export WORKSPACE=`pwd` - + export PYTHONHASHSEED=0 return 0 }