Skip to content
Snippets Groups Projects
Commit bdfcaf7d authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Use a fixed fixed seed for CI

parent 1a00b97b
Branches
Tags
No related merge requests found
Pipeline #6204 failed
......@@ -61,7 +61,7 @@ spec:
script:
- cd 3rdp/build
- touch depend
- $[[ inputs.gnu_make ]] $[[ inputs.build_flags ]] $BUILD_ARGS cryptlib
- $[[ inputs.gnu_make ]] $[[ inputs.build_flags ]] FIXED_FIXED_SEED=1 $BUILD_ARGS cryptlib
artifacts:
expire_in: 30 mins
name: "cryptlib-$[[ inputs.os ]]-$[[ inputs.platform ]]"
......
......@@ -174,6 +174,9 @@ $(CRYPTLIB_BUILD): $(3RDP_ROOT)/dist/cryptlib.zip $(3RDP_ROOT)/build/cl-fix-test
$(QUIET)perl -pi.bak -e 's/^(#define CRYPTLIB_VERSION.*)$$/"$$1\n#define CRYPTLIB_PATCHES \"" . (chomp($$val = `cat cl-*.patch | if (which md5sum > \/dev\/null 2>&1); then md5sum; else md5; fi`), $$val) . "\""/e' $(CRYPT_SRC)/cryptlib.h
@date
$(QUIET)sed -E -iorig 's/%%MIN_MAC_OSX_VERSION%%/${MIN_MAC_OSX_VERSION}/g' $(CRYPT_SRC)/tools/ccopts.sh
ifdef FIXED_FIXED_SEED
$(QUIET)patch -b -p0 -d $(CRYPT_SRC) < cl-fixed-fixed-seed.patch
endif
ifeq ($(os),win32)
$(QUIET)cd $(CRYPT_SRC) && env - PATH="$(PATH)" CC="$(CC)" AR="$(AR)" RANLIB="$(RANLIB)" make directories
$(QUIET)cd $(CRYPT_SRC) && env - PATH="$(PATH)" CC="$(CC)" AR="$(AR)" RANLIB="$(RANLIB)" make toolscripts
......
5a6,8
> echo "-DFIXED_SEED=0xFEEDC0DEBAADF00D"
> exit
>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment