I was thinking about making a cryptocurrency in scratch. However, this needs a reliable hash function that is just as fast in scratch as it is in native code - otherwise people would just write miners in other languages. Obviously, this will still be much slower than native code, but the relative difference should be much smaller than other algorithms. I utilised the pseudo-random nature of the "whirl" effect, which (sometimes?) uses GPU acceleration. Applying the "color" effect could be another source of randomness. Input must be a number. Press space to run a benchmark.
Please let me know: - How long does it take to run a hash on your system? 100ms for me. - What is the hash of "1000"? For me, it's 1477748472991484000 - Can you find any collisions? - Can you write an identical implementation that is significantly faster in native code?