Add static prefix in randomized ipv6.
This commit is contained in:
parent
192001bbd4
commit
f77179c3f1
1 changed files with 12 additions and 0 deletions
|
@ -61,6 +61,18 @@ public final class Ipv6Generator
|
||||||
{
|
{
|
||||||
buffer.append(c);
|
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
|
else
|
||||||
{
|
{
|
||||||
buffer.append(RandomStringUtils.random(1, "0123456789abcdef"));
|
buffer.append(RandomStringUtils.random(1, "0123456789abcdef"));
|
||||||
|
|
Loading…
Reference in a new issue