Moving-Castles / this-cursed-machine

Body horror fulfilment center simulator
MIT License
23 stars 3 forks source link

replace getRandomKey with getUniqueEntity #94

Closed dk1a closed 9 months ago

dk1a commented 9 months ago

We'd considered block.number gasleft() etc approach in uniqueentity module, but the issue is all of those can be identical and within the same block, so to guarantee uniqueness you have to use a storage slot This is more expensive ofcourse since it's storage read+write

netlify[bot] commented 9 months ago

Deploy Preview for playtest-week-39 failed.

Name Link
Latest commit 26823673eb02a2f4b797a90ee5a7bd6aa351aca4
Latest deploy log https://app.netlify.com/sites/playtest-week-39/deploys/65c253b568c1dd000812bdf6