Kaynağa Gözat

BaseTools:Solve the data sorting problem use python3

set PYTHONHASHSEED
Specifying the value 0 will disable hash randomization.

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Zhijux Fan 5 yıl önce
ebeveyn
işleme
d097412330
2 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 1 0
      BaseTools/toolsetup.bat
  2. 1 1
      edksetup.sh

+ 1 - 0
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 (

+ 1 - 1
edksetup.sh

@@ -77,7 +77,7 @@ function SetWorkspace()
   # Set $WORKSPACE
   #
   export WORKSPACE=`pwd`
-
+  export PYTHONHASHSEED=0
   return 0
 }