Foundry's cast command line tool includes a handy utility for generating a one time use wallet under the cast wallet subcommand. We can use it to generate a new account for deployment.

One important note: once a private key has been exposed in public, like the one we're about to create, you should never use it again. If you're following along with these examples, generate your own address and private key.

\$ cast wallet new
Successfully created new keypair.

How can we be sure the wallet we generate is empty? What if we stumble on the same address as someone else? Although this is mathematically possible, it's incredibly unlikely in practice. An Ethereum private key is 256 bits, meaning there are $$2^{256}$$ possible private keys. As long as your generator is really random, the odds of generating the same key twice are so low that you can safely assume them away. This is not a special property of Ethereum keys: this is the case for other commonly used public key cryptosystems, like PGP and SSH.