···2# This should ensure that it is deterministic across rebuilds of the same
3# derivation and not easily collide with other builds.
4# We also truncate the hash so that it cannot cause reference cycles.
5-export NIX_CFLAGS_COMPILE+=" -frandom-seed=$(
6 outbase="${out##*/}"
7 randomseed="${outbase:0:10}"
8 echo $randomseed
9)"
0
···2# This should ensure that it is deterministic across rebuilds of the same
3# derivation and not easily collide with other builds.
4# We also truncate the hash so that it cannot cause reference cycles.
5+NIX_CFLAGS_COMPILE="${NIX_CFLAGS_COMPILE:-} -frandom-seed=$(
6 outbase="${out##*/}"
7 randomseed="${outbase:0:10}"
8 echo $randomseed
9)"
10+export NIX_CFLAGS_COMPILE