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
Excitingly, that code is over ten years old! Well before my time at Signal, and before I did anything with Android.
Given that we use the default SecureRandom elsewhere in libsignal, it would make sense to do the same here. There isn't even a performance argument, since registration IDs are only generated at registration and when you change your number.
Ha, I accidentally autoclosed this with the fix in the private pre-release repo. The hardcoding of SHA1PRNG will be removed in the next release of libsignal, thanks for calling it out!
In the KeyHelper class, an instance of SecureRandom is created and "SHA1PRNG" is passed to the constructor.
Why did you do this choice ? Wouldn't calling the constructor without argument to let the best PRNG on a given platform to be picked ?
The text was updated successfully, but these errors were encountered: