/dev/randomでNeuG TRNGを使用しますか?

/dev/randomでNeuG TRNGを使用しますか?

NeuGハードウェア実際の乱数ジェネレータがあります(http://www.gniibe.org/memo/development/gnuk/rng/neug.html)とそのページはGNU / Linuxシステムで実行されていることを示しています。/dev/ttyACM0

NeuGを使用するようにランダム性を設定できますか/dev/random?それでは、どうすればいいですか?/dev/randomNeuGが実際に使用されているかどうかを確認できますか?

ベストアンサー1

スーパーユーザーの答え:https://superuser.com/questions/309840/how-can-i-point-dev-random-to-dev-urandom

あなたがしなければなら/etc/udev/rules.d/70-harware-randomizer-enable.rulesないことは、次のようなものを作るだけです。

# /etc/udev/rules.d/70-disable-random-entropy-estimation.rules
# Disables /dev/random entropy estimation (it's mostly snake oil anyway).
#
# udevd will warn that the kernel-provided name 'random' and NAME= 'ttyACM0'
# disagree.  You can ignore this warning.

# Use /dev/ttyACM0 instead of /dev/random for the entropy-estimating RNG.
KERNEL=="random", NAME="ttyACM0"

# Remove any existing /dev/random, then create symlink /dev/random pointing to
# /dev/urandom
KERNEL=="urandom", PROGRAM+="/bin/rm -f /dev/random", SYMLINK+="random"

おすすめ記事