Skip to content

Commit cb18230

Browse files
committed
Randomize the order of renaming
1 parent ef08c2e commit cb18230

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Confuser.Renamer/RenamePhase.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ protected override void Execute(ConfuserContext context, ProtectionParameters pa
2727
context.CheckCancellation();
2828
}
2929

30+
var targets = parameters.Targets.ToList();
31+
service.GetRandom().Shuffle(targets);
3032
var pdbDocs = new HashSet<string>();
31-
foreach (IDnlibDef def in parameters.Targets.WithProgress(context.Logger)) {
33+
foreach (IDnlibDef def in targets.WithProgress(context.Logger)) {
3234
if (def is ModuleDef && parameters.GetParameter(context, def, "rickroll", false))
3335
RickRoller.CommenceRickroll(context, (ModuleDef)def);
3436

0 commit comments

Comments
 (0)