about summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel/randstruct-provide-seed.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/os-specific/linux/kernel/randstruct-provide-seed.patch')
-rw-r--r--pkgs/os-specific/linux/kernel/randstruct-provide-seed.patch12
1 files changed, 0 insertions, 12 deletions
diff --git a/pkgs/os-specific/linux/kernel/randstruct-provide-seed.patch b/pkgs/os-specific/linux/kernel/randstruct-provide-seed.patch
deleted file mode 100644
index 1328b9cee3c9..000000000000
--- a/pkgs/os-specific/linux/kernel/randstruct-provide-seed.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -ru a/scripts/gcc-plugins/gen-random-seed.sh b/scripts/gcc-plugins/gen-random-seed.sh
---- a/scripts/gcc-plugins/gen-random-seed.sh	2019-01-11 11:50:29.228258920 +0100
-+++ b/scripts/gcc-plugins/gen-random-seed.sh	2019-01-11 12:18:33.555902720 +0100
-@@ -2,7 +2,7 @@
- # SPDX-License-Identifier: GPL-2.0
- 
- if [ ! -f "$1" ]; then
--	SEED=`od -A n -t x8 -N 32 /dev/urandom | tr -d ' \n'`
-+	SEED="NIXOS_RANDSTRUCT_SEED"
- 	echo "const char *randstruct_seed = \"$SEED\";" > "$1"
- 	HASH=`echo -n "$SEED" | sha256sum | cut -d" " -f1 | tr -d ' \n'`
- 	echo "#define RANDSTRUCT_HASHED_SEED \"$HASH\"" > "$2"