Closed manikantag closed 10 years ago
From what I see, once Hashids instance constructed, encode/decode methods don't modify any class properties but only read them. This way all the calculations happen on thread's stack, so it's thread safe.
Thanks. Closing the issue.
Is using once created
new Hashids("this is my salt")
(probably, as a static variable) is thread safe? or do we've to synchronize it manually?Thanks.