diff --git a/lib/modules/Crypto/randomness.pmod b/lib/modules/Crypto/randomness.pmod
index bfb6f94ed952eae8cd9b2b27a06fc6d906a1f777..d8cc9b096f17761752c0183d69860cbf90bcc604 100644
--- a/lib/modules/Crypto/randomness.pmod
+++ b/lib/modules/Crypto/randomness.pmod
@@ -35,7 +35,7 @@ PRIVATE string some_entropy()
 {
   string res;
   object parent_pipe, child_pipe;
-  mapping env=getenv();
+  mapping env=getenv()+([]);
 
   parent_pipe = Stdio.File();
   child_pipe = parent_pipe->pipe();