title: C++ MurmurHash3 : how to hash integer
body: <p>I am confused with how should i call MurmurHash3_x86_128() with integer key value or is it even possible ? The murmurhash3 code can be found <a href="https://github.com/aappleby/smhasher/blob/master/src/MurmurHash3.cpp" rel="nofollow noreferrer">https://github.com/aappleby/smhasher/blob/master/src/MurmurHash3.cpp</a>. Method definition is given below.</p>
  
  <pre><code>void MurmurHash3_x86_128 ( const void * key, const int len,
                     uint32_t seed, void * out )
  </code></pre>
  
  <p>I am hashing integer value with len as 1 . Is it correct or wrong ? </p>
  
  <pre><code>int main()
  {
  uint64_t seed = 100;
  int p = 500;  // key to hash
  
  uint64_t hash_otpt[2]= {0};
  
  const int *key = &amp;p;
  MurmurHash3_x64_128(key, 1, seed, hash_otpt); // 0xb6d99cf8
  cout  &lt;&lt; *hash_otpt &lt;&lt; endl;
  
  }
  </code></pre>