@ikeji うわあなるほど!! 手元の実装では終了することができましたが、環境によって終わらなくなるかもですね…
@ikeji 雑に最上位ビットにしてみました…。rand()はintなのに0以上しか返さないんですねw
while(h != 0x888) { h = (rand() >= RAND_MAX/2) + (h * 2) & 0xFFF; printf("%s", ds[h & 1]); }
Mastodon is the best way to keep up with what's happening.
Follow anyone across the fediverse and see it all in chronological order. No algorithms, ads, or clickbait in sight.