You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mishmash.hpp 517B

123456789101112131415161718
  1. // mishmash.hpp//
  2. // Copyright (C) 2019-2020 MicroNeil Research Corporation.
  3. //
  4. // This software is released under the MIT license. See LICENSE.TXT.
  5. //
  6. // Mishamash is a non-cryptographic hash optimized for short strings.
  7. #pragma once
  8. #include <string>
  9. #include <vector>
  10. namespace codedweller {
  11. uint32_t mishmash(const unsigned char* buffer, size_t length) noexcept;
  12. uint32_t mishmash(const std::string &s) noexcept;
  13. uint32_t mishmash(const std::vector<unsigned char>& v) noexcept;
  14. } // End namespace codedweller