檢查系統 CSPRNG 的隨機性強度。
產生隨機位元
$ dd if=/dev/random of=random.bin bs=307200 count=1
※ 307200=640x480 為位元數,即 Bitmap 大小。random.bin 為輸出。
將隨機位元轉為 Bitmap 圖像
$ convert -size 640x480 -depth 1 mono:random.bin random.bmp
※ convert:imagemagick 指令。
檢查系統 CSPRNG 的隨機性強度。
$ dd if=/dev/random of=random.bin bs=307200 count=1
※ 307200=640x480 為位元數,即 Bitmap 大小。random.bin 為輸出。
$ convert -size 640x480 -depth 1 mono:random.bin random.bmp
※ convert:imagemagick 指令。