summaryrefslogtreecommitdiff
path: root/blumshub.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'blumshub.cpp')
-rw-r--r--blumshub.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/blumshub.cpp b/blumshub.cpp
index 40c654a..6e1854d 100644
--- a/blumshub.cpp
+++ b/blumshub.cpp
@@ -39,9 +39,9 @@ BlumBlumShub::BlumBlumShub(const Integer &p, const Integer &q, const Integer &se
{
}
-void BlumBlumShub::Seek(dword index)
+void BlumBlumShub::Seek(lword index)
{
- Integer i(Integer::POSITIVE, HIGH_WORD(index), word(index));
+ Integer i(Integer::POSITIVE, index);
i *= 8;
Integer e = a_exp_b_mod_c (2, i / maxBits + 1, (p-1)*(q-1));
current = modn.Exponentiate(x0, e);