fix exception
parent
7b4f0c9c47
commit
c7f1132dd8
|
|
@ -373,7 +373,7 @@ template <class T>
|
||||||
void BenchMarkKeyed(const char *name, double timeTotal, T *x=NULL)
|
void BenchMarkKeyed(const char *name, double timeTotal, T *x=NULL)
|
||||||
{
|
{
|
||||||
T c;
|
T c;
|
||||||
c.SetKeyWithIV(key, c.DefaultKeyLength(), key);
|
c.SetKey(key, c.DefaultKeyLength(), MakeParameters(Name::IV(), key, false));
|
||||||
BenchMark(name, c, timeTotal);
|
BenchMark(name, c, timeTotal);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -382,7 +382,7 @@ template <class T>
|
||||||
void BenchMarkKeyedVariable(const char *name, double timeTotal, unsigned int keyLength, T *x=NULL)
|
void BenchMarkKeyedVariable(const char *name, double timeTotal, unsigned int keyLength, T *x=NULL)
|
||||||
{
|
{
|
||||||
T c;
|
T c;
|
||||||
c.SetKeyWithIV(key, keyLength, key);
|
c.SetKey(key, keyLength, MakeParameters(Name::IV(), key, false));
|
||||||
BenchMark(name, c, timeTotal);
|
BenchMark(name, c, timeTotal);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue