Replace random data generation with pseudo random #43118
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Changes random data generation logic to generate pseudo random data to reduce git pack file sizes and help future work in sessions records where request and response bodies may be compressed (to help shrink session record sizes).
The following are how
.git
folder sizes shrunk due to this change:Blob


Changefeed


Cryptography


NIO


Datalake


Shares


This reduce
.git
folder sizes from 1258 MB to 688 MB, saving 570 MB each time a full set of session records need to be downloaded.A follow-up to this change should be an investigation in changing how much data the Cryptography library uses in testing to see if the session record sizes can be shrunk as the request and response bodies are encrypted data streams which won't be able to compress well given encrypted data randomness.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines