Better RedLock token#41
Better RedLock token#41willemstuursma merged 1 commit intophp-lock:masterfrom mvorisek:better_lock_random
Conversation
|
Thank you. This does not improve the entropy of the token. I'll take a PR that uses |
|
|
Hi @mvorisek. There is no reason to add the microtime to the input of the hashing function. A change should have a good reason behind it. Else it the change is arbitrary and I prefer my own over yours. I already explained that a PR that does |
|
@willemstuursma ok, updated |
|
Thanks. It is not breaking locking compatibility between versions, so it can go in a minor release. |
improve redis token entropy and make the token hexadecimal (easier to debug)