Skip to content

Commit

Permalink
fixup! Add const to cast
Browse files Browse the repository at this point in the history
  • Loading branch information
SWilson4 committed Jan 22, 2024
1 parent f3fece4 commit 9320fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/rand/rand_nist.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ void OQS_randombytes_nist_kat_get_state(void *out) {
}

void OQS_randombytes_nist_kat_set_state(const void *in) {
const OQS_NIST_DRBG_struct *in_state = (OQS_NIST_DRBG_struct *)in;
const OQS_NIST_DRBG_struct *in_state = (const OQS_NIST_DRBG_struct *)in;
if (in_state != NULL) {
memcpy(DRBG_ctx.Key, in_state->Key, sizeof(DRBG_ctx.Key));
memcpy(DRBG_ctx.V, in_state->V, sizeof(DRBG_ctx.V));
Expand Down

0 comments on commit 9320fae

Please sign in to comment.