Add static prefix in randomized ipv6.

This commit is contained in:
Christian P. MOMON 2021-04-26 18:49:35 +02:00
parent 192001bbd4
commit f77179c3f1
1 changed files with 12 additions and 0 deletions

View File

@ -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"));