Index: src/randpath.cc
--- src/randpath.cc.orig
+++ src/randpath.cc
@@ -8,6 +8,7 @@
 #include <string>
 #include <chrono>
 #include <cstring>
+#include <unistd.h>
 
 using namespace std;
 
@@ -163,6 +164,11 @@ void generatePaths()
 
 int main(int argc, char *argv[])
 {
+  if (pledge("stdio rpath wpath cpath", NULL) == -1)
+  {
+    wcerr << "pledge" << endl;
+    return EXIT_FAILURE;
+  }
   LtLocale::tryToSetLocale();
   if(argc != 3)
   {
