Skip to content

Fix return type for randombytes_random and _uniform - #87

Merged
gurpreet- merged 1 commit into
terl:masterfrom
ionspin:86-fix-randombytes
Oct 5, 2020
Merged

Fix return type for randombytes_random and _uniform#87
gurpreet- merged 1 commit into
terl:masterfrom
ionspin:86-fix-randombytes

Conversation

@ionspin

@ionspin ionspin commented Sep 27, 2020

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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