Improving Fairness: Add Gas price to randomization instead of only Token ID

I think we should work as a community to improve fairness of future drops, and make it harder to bot the rare items in future Loot derivative drops.

Something we’ve been discussing in the Loot Builders Discord is adding the transaction gas price to the code which generates the random number. So continue using the token ID but apply an additional layer of hard to predict noise via the gas price. What do folks think?

Updated code via dsi:

        uint256 rand = random(string(abi.encodePacked(keyPrefix, toString(tokenId), msg.sender, tx.gasprice)));

3 Likes