summaryrefslogtreecommitdiffstats
path: root/platform/web/export/export_plugin.cpp
diff options
context:
space:
mode:
authorDavid Nikdel <david.nikdel@gmail.com>2023-09-03 18:14:30 -0400
committerDavid Nikdel <david.nikdel@gmail.com>2023-09-03 18:14:30 -0400
commit067807c1cb7a13624c1d226f301b0431c6edec87 (patch)
treed807266ce3cb6d96667cfe94a6b02ab5501f6807 /platform/web/export/export_plugin.cpp
parentfa3428ff25bc577d2a3433090478a6d615567056 (diff)
downloadredot-engine-067807c1cb7a13624c1d226f301b0431c6edec87.tar.gz
Remove nondeterminism in pck_packer
PCK files (like other build products) should be deterministic based on their inputs. Removed calls to Math::rand() that are being used to generate padding. Looks like these were introduced as part of adding encryption support, but the padding being random does not have any cryptographic significance. This can be trivially inferred since file blocks that happen to be aligned don't get padding anyway. If there's a desire to indroduce something that functions as a nonce it should probably be added explicitly and only if encryption is enabled. remove Math::rand() calls in editor_export_platform.cpp follow up to make consistent with pck_packer
Diffstat (limited to 'platform/web/export/export_plugin.cpp')
0 files changed, 0 insertions, 0 deletions