Skip to content

Commit

Permalink
Use GNUTLS_RND_NONCE for all gnutls_rnd
Browse files Browse the repository at this point in the history
  • Loading branch information
babelouest committed Feb 7, 2023
1 parent c8065c4 commit 96062f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/u_websocket.c
Original file line number Diff line number Diff line change
Expand Up @@ -2349,7 +2349,7 @@ static long random_at_most(long max, int * res) {
unsigned char x[1];
* res = 1;
do {
if (gnutls_rnd(GNUTLS_RND_KEY, x, sizeof(x)) != GNUTLS_E_SUCCESS) {
if (gnutls_rnd(GNUTLS_RND_NONCE, x, sizeof(x)) != GNUTLS_E_SUCCESS) {
* res = 0;
}
}
Expand Down

0 comments on commit 96062f0

Please sign in to comment.