diff options
author | Jack Lloyd <[email protected]> | 2015-10-27 09:08:04 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2015-10-27 09:08:04 -0400 |
commit | 62709ff4cf3bb0fff37b1a1e90bfd5f06a2b2151 (patch) | |
tree | 1c98a31885d499c7435bc5ac4274a944b0af9e9c /src/lib/hash/hash.cpp | |
parent | 10e1dffc911e16b4aaddee2debe6fbc3415199c2 (diff) |
Fix McEliece key gen endian dependency.
The tests which generate McEliece keys using a deterministic RNG and
fixed seed failed on PowerPC (or other big endian systems) because the
vectors assumed we were creating elements little endian, which is
what happend with rng.randomize(&u16, 2) on x86
Fix it to always be little endian. No particular reason to prefer one vs the
other here (we're just trying for compatability with ourselves) and choosing
little endian avoids having to regen the vectors.
Diffstat (limited to 'src/lib/hash/hash.cpp')
0 files changed, 0 insertions, 0 deletions