Simplify the generation of HTML node identifiers
authorAlexander Ebert <ebert@woltlab.com>
Sun, 16 Jun 2024 11:31:00 +0000 (13:31 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 16 Jun 2024 11:31:00 +0000 (13:31 +0200)
commit3b9604d543c71f5626b62d8a72763020e6658132
treef3ae0754b085beea85136857d4f50bbb54ba7cbb
parent72016a9744998b78e6a24a8701461788d95ca43d
Simplify the generation of HTML node identifiers

We do not to generate completely random identifiers, the original intention was to prevent collisions with existing tag names.

Using a per-request random prefix together with a counter is sufficient to generate unique tag names without paying the CSPRNG tax for ever node.
wcfsetup/install/files/lib/system/html/node/AbstractHtmlNodeProcessor.class.php