Replies: 1 comment
-
Let it crash. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using libsodium from rust via https://github.com/jedisct1/libsodium-sys-stable and I figured that it would be nice to panic on misuse, which is convenient for example for testing
This is convenient for testing, for example
Issue is that sodium_misuse set the internal sodium lock and then never unlock it https://github.com/jedisct1/libsodium/blob/master/src/libsodium/sodium/core.c#L196 which ends up dead locking my tests
Can you think of a good way to handle this? Or is this just all too horrible anyway, and I should just let the process crash on misuse? :)
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions