Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix return type for randombytes_random and _uniform #87

Merged
merged 1 commit into from
Oct 5, 2020

Conversation

ionspin
Copy link
Contributor

@ionspin ionspin commented Sep 27, 2020

Signature for randombytes_random and randombytes_uniform is uint32 in libsodium but in lazysodium it's byte. This pull request fixes that.

I used long as return type, because the libsodium function return unsigned int.

Fixes #86

@gurpreet- gurpreet- merged commit ea27165 into terl:master Oct 5, 2020
@gurpreet-
Copy link
Contributor

Another fantastic spot, merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid return type for randombytes_random and randombytes_uniform
2 participants