From c8867a5eb64a5fdb0d8ccc9e330890c4ad0aa39c Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Sat, 13 Jul 2024 22:37:59 +0200 Subject: [PATCH] update malloc perturb envvar to be posix compliant :3 --- options/desktop/dev/malloc-perturb.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options/desktop/dev/malloc-perturb.nix b/options/desktop/dev/malloc-perturb.nix index cdf7d64..f2695a6 100644 --- a/options/desktop/dev/malloc-perturb.nix +++ b/options/desktop/dev/malloc-perturb.nix @@ -1,5 +1,5 @@ _: { environment.sessionVariables = { - MALLOC_PERTURB_ = "$(($RANDOM % 255 + 1))"; + MALLOC_PERTURB_ = "echo $(($(head -200 /dev/urandom | cksum | cut -f1 -d " ") % 255 + 1))"; }; }