1
1
mirror of https://github.com/henrydcase/pqc.git synced 2024-11-22 07:35:38 +00:00

Updated version number, and added an explicit cast to appease some versions of clang-tidy.

This commit is contained in:
Thomas Pornin 2019-09-20 09:01:32 -04:00
parent 44a050106a
commit 2515f13378
4 changed files with 4 additions and 4 deletions

View File

@ -20,4 +20,4 @@ auxiliary-submitters:
- Zhenfei Zhang
implementations:
- name: clean
version: round two
version: 20190920

View File

@ -1122,7 +1122,7 @@ PQCLEAN_FALCON1024_CLEAN_sampler(void *ctx, fpr mu, fpr isigma) {
* centered on 0.
*/
z0 = PQCLEAN_FALCON1024_CLEAN_gaussian0_sampler(&spc->p);
b = prng_get_u8(&spc->p) & 1;
b = (int)prng_get_u8(&spc->p) & 1;
z = b + ((b << 1) - 1) * z0;
/*

View File

@ -20,4 +20,4 @@ auxiliary-submitters:
- Zhenfei Zhang
implementations:
- name: clean
version: round two
version: 20190920

View File

@ -1122,7 +1122,7 @@ PQCLEAN_FALCON512_CLEAN_sampler(void *ctx, fpr mu, fpr isigma) {
* centered on 0.
*/
z0 = PQCLEAN_FALCON512_CLEAN_gaussian0_sampler(&spc->p);
b = prng_get_u8(&spc->p) & 1;
b = (int)prng_get_u8(&spc->p) & 1;
z = b + ((b << 1) - 1) * z0;
/*