Command-line Tools
drand's main functionality is provided by the drand program, which allows you to run a drand server and control its operation. You can also use drand as a client to fetch randomness from a drand network.
Installing drand
Binary Releases
The simplest way to get drand is to download a pre-built binary release for your platform.
You can verify the checksum of a drand binary release by checking the checksums.txt listed in the GitHub assets for the release, which contains the SHA-256 checksum for each release archive. To check your local download, you can use the shasum command:
shasum -a 256 <path-to-drand.tar.gz>
Source Code
You can compile drand from source code by cloning the drand GitHub repository and building the project.
This will require a working Go installation, and your GOPATH must be set. You'll also need the make command available.
With those requirements met, install drand via:
git clone https://github.com/drand/drand
cd drand
make install
This will install drand into $GOPATH/bin, which should be on your $PATH if you followed the standard Go install instructions.
If you'd prefer not to install drand globally, or if you want to put the drand binary in a different location, you can run make build instead of make install. This will create the drand binary in the current directory.