• 1 Post
  • 53 Comments
Joined 1 year ago
cake
Cake day: June 11th, 2024

help-circle

  • You can via git add -i foo.bar

    I believe the only issue with that is that it can only go by hunks. If your changes are sufficiently far away, you can select them separately. But if you change one function that should be in patch a, and another function 5 lines down that should be in patch b, I think you’re screwed

    That being said, this is all from memory, so don’t quote me on it






  • Not only is md5sum not proven to have equal dostribution, it is specifically known to not have equal distribution, only nearly equal distribution.

    A hash function is any function that converts an arbitrary input size into a specific output size deterministically. No other requirements are there. A hash for a simple job could be just adding the ascii values together and give the output. Needless to say, that would not have an even distribution.


  • The hashes not being there isn’t particularly relevant within a hash function outputting a specific size. If your hash function is always 64 bits for example, the fact that you have 3/4th of them not exist means you should be operating as if its a 16 bit hash, not a 64 bit hash. If you still do this math based on the 64 bits outputted (2^64 boxes) you’d arrive at very inaccurate numbers.













  • The2b@lemmy.vgtoLemmy Shitpost@lemmy.worldBased on a true story
    link
    fedilink
    English
    arrow-up
    124
    ·
    5 months ago

    I was sold a car with a 14% interest rate after being told I wouldnt be charged for interest if I paid it off in the first month, so I could pay it off when my CD popped that week. The bank then told me that I had to wait to pay it off until it “appeared in their systems”. Turns out that happened right when interest ticked! Funny how that works