* Implementation of GiNaC's symbolic objects. */
/*
- * GiNaC Copyright (C) 1999-2009 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2010 Johannes Gutenberg University Mainz, Germany
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#include "archive.h"
#include "tostring.h"
#include "utils.h"
+#include "hash_seed.h"
#include "inifcns.h"
#include <map>
unsigned symbol::calchash() const
{
- const void* this_tinfo = (const void*)typeid(*this).name();
- hashvalue = golden_ratio_hash((p_int)this_tinfo ^ serial);
+ unsigned seed = make_hash_seed(typeid(*this));
+ hashvalue = golden_ratio_hash(seed ^ serial);
setflag(status_flags::hash_calculated);
return hashvalue;
}