question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Inconsistent conversion results

See original GitHub issue

There is an inconsistent calculation result, the reason is because \n, help!

  • c# eg:
var buffer = Encoding.UTF8.GetBytes("hello world\ntest test\ntest\n");
uint result = MurmurHash3.Hash32(buffer, 0);
Console.WriteLine(result);
  • result
4126987925
  • python eg:
In [16]: mmh3.hash('hello world\ntest test\ntest\n')
Out[16]: -167979371
  • result
-167979371

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
ssgcommented, Mar 25, 2021

@evi1ox Can you share encoded text files? It’s possible that either Python encoder doesn’t put newlines in the output or the newlines are different between C# and Python (CRLF vs LF).

1reaction
evi1oxcommented, Mar 25, 2021

Yeah, thank you for reminding me, I found it was a base64 problem, and I am considering how to solve it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Conversion rate and cpa too inconsistent : r/PPC
Currently i am running a google ads account and the results have not been so kind. The problem i am running against is...
Read more >
Inconsistent messaging isn't causing your conversion ...
Inconsistent messaging is not the reason that you're not getting the results that you want from your marketing campaigns.
Read more >
Inconsistent Conversion Rate in Adwords
We are in the diet industry and our websites conversion rate is up and down on Adwords. It is extremely inconsistent. One day...
Read more >
Why Is Your Conversion Rate Dropping: 24 Possible Causes
The average conversion rate can drop because of more obvious changes like tweaks to landing pages, pricing, discounts, etc. So, it's advisable to...
Read more >
ADS1115 Inconsistent conversion results and full scale ...
I have a ADS1115 breakout board from adafruit connected to my RPi 3B connected via I2C. It is powered via the RPi 3.3V...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found