Skip to content

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