External Random Source
Randomness Sources for MPC Node in Builder Vault
As default, an MPC node in Builder Vault obtains its randomness from the operating system:
- Linux, FreeBSD: getrandom(2) if available, /dev/urandom otherwise
- OpenBSD: getentropy(2)
- Unix-like systems: /dev/urandom
- Windows: CryptGenRandom API
Alternative Configuration
As an alternative, you can enable the following section in the MPC node configuration file:
TOML
[Randomness]
Device = "/dev/urandom"
When enabled, the MPC node will read its randomness from the specified file, e.g., when generating new key shares.
It is recommended to leave this section out of the configuration file, unless you have a specific reason to use an external source.