toad.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server operated by David Troy, a tech pioneer and investigative journalist addressing threats to democracy. Thoughtful participation and discussion welcome.

Administered by:

Server stats:

218
active users

#hash

0 posts0 participants0 posts today
Jan :rust: :ferris:<p>Collection of universal hashing functions in Rust:</p><p><a href="https://github.com/RustCrypto/universal-hashes" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/RustCrypto/universa</span><span class="invisible">l-hashes</span></a></p><p><a href="https://floss.social/tags/Hash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Hash</span></a> <a href="https://floss.social/tags/Hashing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Hashing</span></a> <a href="https://floss.social/tags/Cryptography" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Cryptography</span></a> <a href="https://floss.social/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a> <a href="https://floss.social/tags/RustLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RustLang</span></a></p>
𝕂𝚞𝚋𝚒𝚔ℙ𝚒𝚡𝚎𝚕<p>Choosing a hash function for 2030 and beyond: SHA-2 vs SHA-3 vs BLAKE3</p><p>As everyone knows, "temporary fixes" are nothing but temporary.<br>Unfortunately, the same is true for cryptography: unless security is your core value-proposition, crypto algorithms are almost never updated, and that's how we end up with SHA1-hashed password in 2024 🤦‍♂️</p><p># <a href="https://kerkour.com/fast-secure-hash-function-sha256-sha512-sha3-blake3" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">kerkour.com/fast-secure-hash-f</span><span class="invisible">unction-sha256-sha512-sha3-blake3</span></a></p><p><a href="https://chaos.social/tags/hash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hash</span></a> <a href="https://chaos.social/tags/hashfunctions" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hashfunctions</span></a> <a href="https://chaos.social/tags/coding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>coding</span></a> <a href="https://chaos.social/tags/sha2" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sha2</span></a> <a href="https://chaos.social/tags/hashing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hashing</span></a> <a href="https://chaos.social/tags/itsec" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>itsec</span></a> <a href="https://chaos.social/tags/itsecurity" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>itsecurity</span></a> <a href="https://chaos.social/tags/sha3" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sha3</span></a> <a href="https://chaos.social/tags/BLAKE3" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>BLAKE3</span></a> <a href="https://chaos.social/tags/fast" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fast</span></a> <a href="https://chaos.social/tags/fastapi" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fastapi</span></a> <a href="https://chaos.social/tags/feature" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>feature</span></a></p>
Nicolas MOUART-DAVID<p>I think we need a ledger with hashes to vet all findings and compensate the real finders fairly <a href="https://mastodon.social/tags/openScience" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>openScience</span></a> <a href="https://mastodon.social/tags/hash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hash</span></a> <a href="https://mastodon.social/tags/ledger" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ledger</span></a> <a href="https://mastodon.social/tags/hashtags" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hashtags</span></a></p>
DonBahno<p><strong>Coffeeshop The Stud v Amsterdamu</strong></p> <p><a href="https://vhsky.cz/w/i1bkhLcSLAvdJear2njsbC" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">vhsky.cz/w/i1bkhLcSLAvdJear2nj</span><span class="invisible">sbC</span></a></p>
Totts<p>"Wear a tall hat like a druid in the old days<br>Wear a tall hat and a tattooed gown<br>Ride a white swan like the people of the Beltane<br>Wear your hair long, babe you can't go wrong"</p><p><a href="https://mastodon.online/tags/MayDay" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>MayDay</span></a> <a href="https://mastodon.online/tags/Beltane" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Beltane</span></a> <a href="https://mastodon.online/tags/Hash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Hash</span></a> <a href="https://mastodon.online/tags/Marc" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Marc</span></a></p>
IT News<p>Hash Functions with the Golden Ratio - In the realm of computer science, it’s hard to go too far without encountering has... - <a href="https://hackaday.com/2025/04/25/hash-functions-with-the-golden-ratio/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">hackaday.com/2025/04/25/hash-f</span><span class="invisible">unctions-with-the-golden-ratio/</span></a> <a href="https://schleuss.online/tags/computerscience" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>computerscience</span></a> <a href="https://schleuss.online/tags/processingtime" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>processingtime</span></a> <a href="https://schleuss.online/tags/efficiency" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>efficiency</span></a> <a href="https://schleuss.online/tags/fibbonaci" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fibbonaci</span></a> <a href="https://schleuss.online/tags/science" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>science</span></a> <a href="https://schleuss.online/tags/hashing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hashing</span></a> <a href="https://schleuss.online/tags/modulo" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>modulo</span></a> <a href="https://schleuss.online/tags/hash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hash</span></a></p>
Mark :wa: :nd:<p>I went to 4/20 at Washington square park this year and linked up with some people I knew. Highlights were meeting jolly tiger, big time streamer and CEO of puffco. They gave so so much swag including a free hot knife. I got some incredible pakastani land race from a Pakistani American who gets the stuff from his town back in the old country. I also scored some authentic blue lobster and two jars of rosin that were cheese crosses. 1/?<br><a href="https://weird.autos/tags/puffco" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>puffco</span></a> <a href="https://weird.autos/tags/cannabis" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cannabis</span></a> <a href="https://weird.autos/tags/hash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hash</span></a> <a href="https://weird.autos/tags/rosin" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rosin</span></a></p>
Dining & Cooking<p>The Global Chef: Egg-full recipes can become the cornerstone of your Easter Sunday brunch or a weekend meal | Food <a href="https://www.diningandcooking.com/2026752/the-global-chef-egg-full-recipes-can-become-the-cornerstone-of-your-easter-sunday-brunch-or-a-weekend-meal-food/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">diningandcooking.com/2026752/t</span><span class="invisible">he-global-chef-egg-full-recipes-can-become-the-cornerstone-of-your-easter-sunday-brunch-or-a-weekend-meal-food/</span></a> <a href="https://vive.im/tags/avgolemono" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>avgolemono</span></a> <a href="https://vive.im/tags/beetroot" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>beetroot</span></a> <a href="https://vive.im/tags/ChickenAsFood" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ChickenAsFood</span></a> <a href="https://vive.im/tags/Cooking" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Cooking</span></a> <a href="https://vive.im/tags/cuisine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cuisine</span></a> <a href="https://vive.im/tags/Egg" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Egg</span></a> <a href="https://vive.im/tags/EggDecoratingInSlavicCulture" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>EggDecoratingInSlavicCulture</span></a> <a href="https://vive.im/tags/EggsAsFood" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>EggsAsFood</span></a> <a href="https://vive.im/tags/FoodAndDrinkPreparation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FoodAndDrinkPreparation</span></a> <a href="https://vive.im/tags/Foods" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Foods</span></a> <a href="https://vive.im/tags/Garlic" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Garlic</span></a> <a href="https://vive.im/tags/Hash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Hash</span></a>(food) <a href="https://vive.im/tags/Lemon" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Lemon</span></a> <a href="https://vive.im/tags/NancyKrcekAllen" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>NancyKrcekAllen</span></a> <a href="https://vive.im/tags/Onion" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Onion</span></a> <a href="https://vive.im/tags/Parsley" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Parsley</span></a> <a href="https://vive.im/tags/PoachedEgg" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PoachedEgg</span></a> <a href="https://vive.im/tags/Poaching" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Poaching</span></a>(cooking) <a href="https://vive.im/tags/RecipeTopics" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RecipeTopics</span></a> <a href="https://vive.im/tags/Recipes" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Recipes</span></a> <a href="https://vive.im/tags/soup" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>soup</span></a> <a href="https://vive.im/tags/water" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>water</span></a> <a href="https://vive.im/tags/WesternCuisine" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WesternCuisine</span></a></p>
Martine<p><a href="https://msmartinecom.wordpress.com/2025/04/12/april-in-amsterdam/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">msmartinecom.wordpress.com/202</span><span class="invisible">5/04/12/april-in-amsterdam/</span></a> </p><p><a href="https://ioc.exchange/tags/Amsterdam" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Amsterdam</span></a> <a href="https://ioc.exchange/tags/Netherlands" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Netherlands</span></a> <a href="https://ioc.exchange/tags/Bulbfields" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Bulbfields</span></a>#Tulips <a href="https://ioc.exchange/tags/Travel" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Travel</span></a> <a href="https://ioc.exchange/tags/windmills" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>windmills</span></a> <a href="https://ioc.exchange/tags/polders" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>polders</span></a> <a href="https://ioc.exchange/tags/Edam" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Edam</span></a><br><a href="https://ioc.exchange/tags/Giethoorn" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Giethoorn</span></a> <a href="https://ioc.exchange/tags/Marken" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Marken</span></a> <a href="https://ioc.exchange/tags/Volendam" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Volendam</span></a> <a href="https://ioc.exchange/tags/Cannabis" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Cannabis</span></a><br><a href="https://ioc.exchange/tags/hash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hash</span></a> <a href="https://ioc.exchange/tags/blog" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>blog</span></a></p>
Gea-Suan Lin<p>Valkey 對 hash 資料結構的改善</p><p>在 Lobsters 上看到「A new hash table」這篇,講 Valkey 對 hash 資料結構的改善。 其中 Valkey 是 Redis 在捨棄 open source license 後興起的專案。這類拋棄 open source license 的專案中,有個關鍵的點是「原廠」與「社群」之間的貢獻比率。 如果整個專案都只有「原廠」的人在參與,那 fork 出來的版本就不會有太多前景了;反過來如果「社群」有提供不少貢獻,那 fork 出來的版本就有機會欣欣向榮。 Valkey 的這個 hash 的改善本身固然很重要 (因為 hash 算是很基礎的資料結構,有很多地方會用到),另外一方面,這代表了「社群」這邊的能量是存在的,就很值得期待了。 …</p><p><a href="https://blog.gslin.org/archives/2025/04/04/12332/valkey-%e5%b0%8d-hash-%e8%b3%87%e6%96%99%e7%b5%90%e6%a7%8b%e7%9a%84%e6%94%b9%e5%96%84/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">blog.gslin.org/archives/2025/0</span><span class="invisible">4/04/12332/valkey-%e5%b0%8d-hash-%e8%b3%87%e6%96%99%e7%b5%90%e6%a7%8b%e7%9a%84%e6%94%b9%e5%96%84/</span></a></p><p><a href="https://abpe.org/tags/algorithm" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>algorithm</span></a> <a href="https://abpe.org/tags/data" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>data</span></a> <a href="https://abpe.org/tags/hash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hash</span></a> <a href="https://abpe.org/tags/redis" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>redis</span></a> <a href="https://abpe.org/tags/structure" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>structure</span></a> <a href="https://abpe.org/tags/valkey" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>valkey</span></a></p>
IT News<p>Fitting a Spell Checker into 64 kB - By some estimates, the English language contains over a million unique words. This... - <a href="https://hackaday.com/2025/03/26/fitting-a-spell-checker-into-64-kb/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">hackaday.com/2025/03/26/fittin</span><span class="invisible">g-a-spell-checker-into-64-kb/</span></a> <a href="https://schleuss.online/tags/computerhacks" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>computerhacks</span></a> <a href="https://schleuss.online/tags/bloomfilter" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bloomfilter</span></a> <a href="https://schleuss.online/tags/compression" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>compression</span></a> <a href="https://schleuss.online/tags/spellcheck" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>spellcheck</span></a> <a href="https://schleuss.online/tags/algorithm" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>algorithm</span></a> <a href="https://schleuss.online/tags/memory" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>memory</span></a> <a href="https://schleuss.online/tags/hash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hash</span></a> <a href="https://schleuss.online/tags/unix" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>unix</span></a></p>
untakenusername<p>Guys I've been thinking about this recently<br>So the telegraph has existed for a while, and became widespread in 1800s. Charles Babbage worked on the first mechanical <a href="https://infosec.exchange/tags/computers" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>computers</span></a> in the 1820s</p><p>What would be the earliest point in time in which a <a href="https://infosec.exchange/tags/Bitcoin" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Bitcoin</span></a> like <a href="https://infosec.exchange/tags/Blockchain" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Blockchain</span></a> could've been made?</p><p>As I understand it all the system needs is a <a href="https://infosec.exchange/tags/network" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>network</span></a> of computers each running a program that checks for transactions</p><p>I'm wondering if a different hash function was used it could be a lot simpler to implement into hardware, but if mechanical computing wasn't powerful enough for that the earliest might've been after WWII with the code breaking machines that the Allies invented</p><p>Any boosts would be greatly appreciated!</p><p><a href="https://infosec.exchange/tags/historicalcomputing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>historicalcomputing</span></a> <a href="https://infosec.exchange/tags/computer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>computer</span></a> <a href="https://infosec.exchange/tags/hash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hash</span></a> <a href="https://infosec.exchange/tags/cryptography" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cryptography</span></a> <a href="https://infosec.exchange/tags/crypto" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>crypto</span></a></p>
manitu GmbH<p><a href="https://manitu.social/tags/TalesFromSupport" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TalesFromSupport</span></a></p><p>"Hallo, ich habe mein Passwort vergessen. Könnt ihr mir mein altes zuschicken?"</p><p>Nein. Und das ist auch gut so. 😅</p><p><a href="https://manitu.social/tags/Passwort" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Passwort</span></a> <a href="https://manitu.social/tags/Hash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Hash</span></a> <a href="https://manitu.social/tags/bcrypt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bcrypt</span></a></p>
さよなら皆さん<p><span class="h-card" translate="no"><a href="https://urusai.social/@rinmari" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>rinmari</span></a></span> <span class="h-card" translate="no"><a href="https://social.growyourown.services/@FediTips" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>FediTips</span></a></span> indeed. Does a screen reader have trouble with a <a href="https://urusai.social/tags/one" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>one</span></a> <a href="https://urusai.social/tags/word" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>word</span></a> <a href="https://urusai.social/tags/hash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hash</span></a> <a href="https://urusai.social/tags/tag" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tag</span></a> if all are lowercase?</p>
Stoney Takes<p>Went in too hot on the banana! Got walloped. Still tastes good. Had to eat some CBD gummies and some cold cereal to recover a bit. Next up, the Bananza. <a href="https://heads.social/tags/hash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hash</span></a></p>
Stoney Takes<p>Dirty Z, fire as expected. Next up, “Frozen Banana”. Banana is a fruit flavor that really comes through in hash. This one’s a fan favorite! <a href="https://heads.social/tags/cannabis" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cannabis</span></a> <a href="https://heads.social/tags/hash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hash</span></a> <a href="https://heads.social/tags/rosin" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rosin</span></a> <a href="https://heads.social/tags/humboldt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>humboldt</span></a></p>
Stoney Takes<p>Genetics are thought to be pollen from a Grapefruit Kush male, bred by Tony Mendocino, crossed with a mystery clone from Gas Station Bob. Only got a few seeds and one became the Z. 10 years running, she still occupies the podium at most hash competitions. I’ve been a Z Stan since 2016. <a href="https://heads.social/tags/cannabis" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cannabis</span></a> <a href="https://heads.social/tags/hash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hash</span></a> <a href="https://heads.social/tags/ca" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ca</span></a> (2/2)</p>
Bob the Traveler<p>The first block of the Bitcoin blockchain was established OTD in 2009 by Satoshi Nakamoto <a href="https://cromwell-intl.com/cybersecurity/crypto/hash.html?s=mb" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">cromwell-intl.com/cybersecurit</span><span class="invisible">y/crypto/hash.html?s=mb</span></a> <a href="https://mastodon.world/tags/hash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hash</span></a> <a href="https://mastodon.world/tags/cybersecurity" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cybersecurity</span></a></p>
dorotaC<p><a href="https://fosstodon.org/tags/ISBN" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ISBN</span></a> is a centralized system, you even have to pay not insignificant amount of money to get a number.</p><p>I can't even figure out how to self-assign a <a href="https://fosstodon.org/tags/DOI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>DOI</span></a> .</p><p>Is there anything else that helps identify <a href="https://fosstodon.org/tags/publications" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>publications</span></a> that doesn't have gatekeepers?</p><p>Like some equivalent of a <a href="https://fosstodon.org/tags/torrent" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>torrent</span></a> infohash?</p><p>Would a <a href="https://fosstodon.org/tags/blockchain" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>blockchain</span></a> solution solve problems like collisions easier than any alternatives?</p><p><a href="https://fosstodon.org/tags/decentralization" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>decentralization</span></a> <a href="https://fosstodon.org/tags/books" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>books</span></a> <a href="https://fosstodon.org/tags/publishing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>publishing</span></a> <a href="https://fosstodon.org/tags/digitalsovereignty" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>digitalsovereignty</span></a> <a href="https://fosstodon.org/tags/hash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hash</span></a></p>
zirias (on snac)<a href="https://snac.bsd.cafe?t=programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#programming</a> question, TL;DR: How to test for an (approximately) uniform <a href="https://snac.bsd.cafe?t=distribution" class="mention hashtag" rel="nofollow noopener" target="_blank">#distribution</a>?<br><br>Today at work, I created a piece of code that should <a href="https://snac.bsd.cafe?t=partition" class="mention hashtag" rel="nofollow noopener" target="_blank">#partition</a> a stream of data entities based on some string keys of unknown format. The only requirements were that the same key must always be assigned to the same partition and the distribution should be approximately uniform (IOW all partitions should have roughly the same size). My approach was to apply a non-cryptographic <a href="https://snac.bsd.cafe?t=hash" class="mention hashtag" rel="nofollow noopener" target="_blank">#hash</a> function to the keys (defaulting to <a href="https://snac.bsd.cafe?t=xxhash3" class="mention hashtag" rel="nofollow noopener" target="_blank">#xxhash3</a>), XOR-fold the hash down to 32 bits and then take this as an unsigned integer modulo the desired number of partitions.<br><br>I normally only code my private projects (as a software architect, I rarely have the time to touch any code at work, unfortunately), and there, I'd certainly test something like this on some large samples of input data, but probably just once manually. 🙈<br><br>But for work, I felt this should be done by a <a href="https://snac.bsd.cafe?t=unittest" class="mention hashtag" rel="nofollow noopener" target="_blank">#unittest</a>. I also think at least one set of input data should be somehow "random" (while others should contain "patterns"). My issue is with unit-testing the case for "random" input. One test I wrote feeds 16k GUIDs (in string representation) to my partitioner configured for 13 partitions, and checks that the factor between the largest and smallest partitions remains &lt; 2, so, a <b>very</b> relaxed check. Still doubt remains because there's no way to guarantee this test won't go "red" <i>eventually</i>.<br><br>I now see several possible options:<br><ul><li>just ignore this because hell freezing is more likely than that test going red ...</li><li>don't even attempt to test the resulting distribution on "random" input</li><li>bite the bullet and write some extra code creating "random" (unicode, random length within some limits) strings from a PRNG which will produce a predictable sequence</li></ul><br>What do you think? 🤔 The latter option kind of sounds best, but then the complexity of the test will probably exceed the complexity of the code tested. 🙈<br>