Skip to content

Commit

Permalink
Improve entropy based generation
Browse files Browse the repository at this point in the history
  • Loading branch information
mikera committed Aug 7, 2024
1 parent af14b98 commit 1930ed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion convex-cli/src/main/java/convex/cli/key/KeyGenerate.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private AKeyPair generateKeyPair() {
int c=System.console().reader().read();
ABlob entropy=Blobs.forLong(c).append(Blobs.forLong(System.currentTimeMillis()));
h=h.append(entropy).getContentHash();
println(h.getContentHash());
informWarning(h.getContentHash().toHexString());
if ((c=='\r')||(c=='\n')) break;
} catch (IOException e) {
throw new CLIError(ExitCodes.IOERR,"Unable to collect entropy");
Expand Down

0 comments on commit 1930ed2

Please sign in to comment.