From 4498352f4f34ce7ab6422b55b410b774526cf0f6 Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Sun, 18 Apr 2021 12:30:21 -0700 Subject: [PATCH] On CI: Use /dev/urandom when /dev/random is accessed to use less entropy --- .github/workflows/main.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index a69b3ecf..107d6fdf 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -106,6 +106,13 @@ jobs: fi sudo apt-get update sudo apt-get install ninja-build libcurl4-openssl-dev libfuse-dev ccache ${{matrix.compiler.apt_package}} + - name: Speed up random generator + if: ${{ runner.os == 'Linux' }} + run: | + set -v + # Use /dev/urandom when /dev/random is accessed to use less entropy + sudo cp -a /dev/urandom /dev/random + shell: bash - name: Find pip cache location id: pip_cache_dir run: |