Randomize anonsets for privacy profile
MODIFY
WalletWasabi.Fluent/ViewModels/CoinJoinProfiles/PrivateCoinJoinProfile.cs
WalletWasabi.Fluent/ViewModels/CoinJoinProfiles/PrivateCoinJoinProfile.cs
using Avalonia.Media;
+using WalletWasabi.Crypto.Randomness;
using WalletWasabi.Fluent.Helpers;
namespace WalletWasabi.Fluent.ViewModels.CoinJoinProfiles;
@@ -10,8 +11,15 @@ internal class PrivateCoinJoinProfile : CoinJoinProfileViewModelBase
public override string Description => "Choice of the paranoid. Optimizes for privacy at all costs.";
public override IImage Icon => AssetHelpers.GetBitmapAsset($"avares://WalletWasabi.Fluent/Assets/WalletIcons/{ThemeHelper.CurrentTheme}/normal.png");
- public override int MinAnonScoreTarget => 50;
- public override int MaxAnonScoreTarget => 100;
+
+ public override int MinAnonScoreTarget { get; } = GetRandom(40, 61);
+ public override int MaxAnonScoreTarget { get; } = GetRandom(90, 111);
public override int FeeRateAverageTimeFrameHours => 0;
+
+ private static int GetRandom(int minInclusive, int maxExclusive)
+ {
+ using SecureRandom rand = new();
+ return rand.GetInt(minInclusive, maxExclusive);
+ }
}

Randomize anonsets for privacy profile