[Feature request (DONE)] Fill random #33
Replies: 6 comments 2 replies
-
It's definitely a worthwhile idea, i also had it in mind previously. |
Beta Was this translation helpful? Give feedback.
-
This is a good idea. I would suggest two modes: (a) Fast using the C random number generator and (b) High entropy using something like: CryptGenRandom. I am tempted to add it myself to the Fill dialog. This would mean it needed to use MODIFY_OPERATION or possibly even a new EHexModifyMode type? |
Beta Was this translation helpful? Give feedback.
-
This feature was implemented in 2a51d4f. |
Beta Was this translation helpful? Give feedback.
-
Thank you. I was still thinking about how to implement this. Please can I suggest a further "Fill random quick (but good enough)" option that either re-cycled the same random data or used rand(). The current method is great but, as you predicted, quite slow. |
Beta Was this translation helpful? Give feedback.
-
Thank you. That was, as ever, excellent advice. You are correct, the debug build is incredibly slow. The results below are for a release build:
*All tests done on same hardware with a 4GB test file. Each test repeated 4 times, first test ignored and subsequent 3 tests averaged. I would suggest an additional "Quick but good enough" random fill. This could fill the buffer once and then recycle it. The result should be very similar to first case above and almost 3x faster than the current "More random but slower" method. Provided the buffer was reasonably large, the result would still be random enough for most everyday purposes. |
Beta Was this translation helpful? Give feedback.
-
This feature was fully implemented in 37aa49e. This could be closed now. |
Beta Was this translation helpful? Give feedback.
-
Please I suggest fill random data option. This enhanced with option many pass for clean data secure.
Beta Was this translation helpful? Give feedback.
All reactions