David Amador on Nostr: here's an *interesting* side-effect of order of evaluation on a function call being ...
here's an *interesting* side-effect of order of evaluation on a function call being unspecified on this RNG. There's no guarantee which operation get_float() is called first, both request the randomizer next number, so given the same seed we might not get the same result
Published at
2024-03-02 09:54:23Event JSON
{
"id": "d5adfed693db5621178ecf5d31a86f8127527c86bb2e2d4f1204b3eb6eeebd05",
"pubkey": "f822ae7b5d60ed7d9560dc9ee3b50a2b67fa795ca7ee99d6d7695c18b5a102e9",
"created_at": 1709373263,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.gamedev.place/users/djlink/statuses/112025486175106930",
"activitypub"
]
],
"content": "here's an *interesting* side-effect of order of evaluation on a function call being unspecified on this RNG. There's no guarantee which operation get_float() is called first, both request the randomizer next number, so given the same seed we might not get the same result\n\nhttps://cdn.masto.host/mastodongamedevplace/media_attachments/files/112/025/486/097/181/978/original/3a97514d6d8c8cd7.png",
"sig": "630ac090b8154e4128d48e8865c6fdd7831020b903f0df5a0b84495ac0566e00b3b57972397a1dbde0619232a90fb16852de65c1c7ee3e384d98c58f17d32026"
}