You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While reading the code, I noticed that HMACStrategy.Generate uses a mutex lock, but I do not get why it exists. No code there has any global or local state?
This was introduced in b4b9be5, but I also do not get why.
Given that this is used a lot, I think mutex could be removed?
Reproducing the bug
N/A
Relevant log output
No response
Relevant configuration
No response
Version
latest master
On which operating system are you observing this issue?
None
In which environment are you deploying?
None
Additional Context
No response
The text was updated successfully, but these errors were encountered:
I suspect it may have been implemented at a time where there was a lot of information about it being unsafe for concurrent usage, which I believe from memory was false and it was based on a couple articles from prominent bloggers who misinterpreted the issues with math/rand's global Read func instead of crypto/rand's global Reader.
Preflight checklist
Ory Network Project
No response
Describe the bug
While reading the code, I noticed that
HMACStrategy.Generate
uses a mutex lock, but I do not get why it exists. No code there has any global or local state?This was introduced in b4b9be5, but I also do not get why.
Given that this is used a lot, I think mutex could be removed?
Reproducing the bug
N/A
Relevant log output
No response
Relevant configuration
No response
Version
latest master
On which operating system are you observing this issue?
None
In which environment are you deploying?
None
Additional Context
No response
The text was updated successfully, but these errors were encountered: