aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-08 23:02:17 +0000
committerlloyd <[email protected]>2008-11-08 23:02:17 +0000
commit33b52f8ff1663f0a20edc824331fa9c22c7a2a11 (patch)
treefabf9e62a2baf884de4716a1060213cba489b451 /src/engine
parent5e79ee8939aa3cfcaed9159168153ee020ebd8de (diff)
Remove lookup from parallel hash construction
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/def_engine/lookup_hash.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/engine/def_engine/lookup_hash.cpp b/src/engine/def_engine/lookup_hash.cpp
index 3c509ba42..10cc86785 100644
--- a/src/engine/def_engine/lookup_hash.cpp
+++ b/src/engine/def_engine/lookup_hash.cpp
@@ -200,8 +200,13 @@ Default_Engine::find_hash(const std::string& algo_spec) const
{
if(name.size() < 2)
throw Invalid_Algorithm_Name(algo_spec);
- name.erase(name.begin());
- return new Parallel(name);
+
+ std::vector<HashFunction*> hashes;
+
+ for(u32bit i = 1; i != name.size(); ++i)
+ hashes.push_back(get_hash(name[i]));
+
+ return new Parallel(hashes);
}
#endif