# Is this the proper way to generate an Ed25519 signing key? If not, how?

In the test of this Java implementation of Ed25519, the signing key is generated this way:

byte[] sk = new byte[32];
Arrays.fill(sk, (byte)0);


The SecureRandom class with an implicit seed should work (unless the java implementation does something unusual) –  CodesInChaos Jan 12 at 15:55