spaolacci / murmur3

Native MurmurHash3 Go implementation
BSD 3-Clause "New" or "Revised" License
955 stars 125 forks source link

[Question] generate positive only numbers #18

Closed MarcMagnin closed 5 years ago

MarcMagnin commented 7 years ago

Hi, Thanks a lot for this library. Is there is a way to generate positive number only?

Many thanks, Marc

spaolacci commented 7 years ago

Hi Marc,

I'm not sure I get the question right. For example,Sum32() returns an uint32, which is postive. Same goes for Sum64 (with uint64 of course).

Can you please further describe what you're having trouble with?

Thanks, Seb

DigitalMarc commented 5 years ago

Well, I'm not sure why I wrote that at the time... ;) Probably because I was looking as some conversion of the uint32 to int32 after some Avro serialization... Many thanks!