summaryrefslogtreecommitdiff
path: root/randpool.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-06-17 17:19:50 -0400
committerJeffrey Walton <noloader@gmail.com>2021-06-17 17:19:50 -0400
commit7101e9e73a66a35a11a1389851e8097fa5339cc3 (patch)
tree08409941644992ff548253ef19200035ea191d3f /randpool.h
parent1124a3d1fe8ac0c59acaf75f087ee4bd44a8b0bf (diff)
downloadcryptopp-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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/randpool.h b/randpool.h
index a24b9dbf..51140145 100644
--- a/randpool.h
+++ b/randpool.h
@@ -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();