Feature request: Make Random installable
Original Reporter info from Mantis: Thaddy
-
Reporter name: Thaddy de Koning
Original Reporter info from Mantis: Thaddy
- Reporter name: Thaddy de Koning
Description:
(I have implementation ready)
For several reasons, it might be a good idea to make the Random function installable so one could choose a different algorithm if required.
E.g.:
- install a Delphi compatible Random (LCG)
- install a faster random (XORSHIFT etc)
- install random XXX because you need to read code from YY that uses XXX
If this is OK I will provide the feature myself.
Additional information:
The idea is to leave everything intact, just use a prototype function pointer and connect that to the current random. Third party random code can then be connected through that function pointer.
Mantis conversion info:
- Mantis ID: 31737
- OS: all
- OS Build: all
- Build: 36020+
- Platform: all
- Version: 3.1.1