Use static random fill for proven closed providers
ProprietaryCompose the five conservative fresh-array RNGCryptoServiceProvider Fill ports: adjacent using statement, body-local array, using declaration, direct inline receiver and plain local. Preserve each handler's allocation, closure, comments, typing and failure bounds. Leave nonzero/ranged/shared/unproven/configured/factory origins and conditional snapshots unchanged. Opt-in modern API port; no algorithm, size, seed, ownership or persistence policy choice.
OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net6. UseClosedRandomFillsmod run . --recipe= OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net6. UseClosedRandomFillsInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Use static random fill for a fresh array and closed provider
- Use static random fill for a fresh array inside a closed provider block
- Use static random fill for a fresh array and closed using declaration
- Use static random fill for an inline provider and fresh array
- Use static random fill for a fresh array and closed plain local