Skip to content

Do not synchronize on global variable in crypt Util.makeKey#1064

Merged
ArneBab merged 1 commit into
hyphanet:nextfrom
bertm:unsynchronize-make-key
Jun 22, 2025
Merged

Do not synchronize on global variable in crypt Util.makeKey#1064
ArneBab merged 1 commit into
hyphanet:nextfrom
bertm:unsynchronize-make-key

Conversation

@bertm

@bertm bertm commented May 12, 2025

Copy link
Copy Markdown
Contributor

This method is used by Yarrow (our random number generator) for seeding, which is used in many places. We'd better not have a global bottleneck for its uses.

Instead of sharing a digest globally, just obtain a fresh one when in need.

This method is used by Yarrow (our random number generator) for seeding,
which is used in many places. We'd better not have a global bottleneck
for its uses.
Comment thread src/freenet/crypt/Util.java
@ArneBab ArneBab merged commit 655cfa6 into hyphanet:next Jun 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants