diff options
author | Jeffrey Walton <noloader@gmail.com> | 2021-06-17 17:19:50 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2021-06-17 17:19:50 -0400 |
commit | 7101e9e73a66a35a11a1389851e8097fa5339cc3 (patch) | |
tree | 08409941644992ff548253ef19200035ea191d3f /randpool.h | |
parent | 1124a3d1fe8ac0c59acaf75f087ee4bd44a8b0bf (diff) | |
download | cryptopp-git-7101e9e73a66a35a11a1389851e8097fa5339cc3.tar.gz |
Endian swap outptu OldRandomPool::GenerateWord32
Also see https://groups.google.com/g/cryptopp-users/c/YOl2FGXSp44
Diffstat (limited to 'randpool.h')
-rw-r--r-- | randpool.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -87,6 +87,10 @@ public: byte GenerateByte();
void GenerateBlock(byte *output, size_t size);
+ // Endian swapped on little-endian machines. This is different
+ // behavior from Crypto++ 5.4. Provide an override to correct it.
+ word32 GenerateWord32 (word32 min=0, word32 max=0xffffffffUL);
+
protected:
void Stir();
|