From f77179c3f1091b98f3c38b47b0e1dac3bd38ad4e Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Mon, 26 Apr 2021 18:49:35 +0200 Subject: [PATCH] Add static prefix in randomized ipv6. --- .../devinsy/logar/app/anonymizer/Ipv6Generator.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/fr/devinsy/logar/app/anonymizer/Ipv6Generator.java b/src/fr/devinsy/logar/app/anonymizer/Ipv6Generator.java index 528ee48..6a9f856 100644 --- a/src/fr/devinsy/logar/app/anonymizer/Ipv6Generator.java +++ b/src/fr/devinsy/logar/app/anonymizer/Ipv6Generator.java @@ -61,6 +61,18 @@ public final class Ipv6Generator { buffer.append(c); } + else if (index == 0) + { + buffer.append('b'); + } + else if (index == 1) + { + buffer.append('a'); + } + else if (index == 2) + { + buffer.append('d'); + } else { buffer.append(RandomStringUtils.random(1, "0123456789abcdef"));