Appends a representation of the system time to the generated ufrag-s, in order to decrease the chance of local collisions.
This commit is contained in:
parent
c0e7cd56d6
commit
cf6d78208f
@ -273,7 +273,9 @@ public class Agent
|
|||||||
|
|
||||||
ufrag
|
ufrag
|
||||||
= ensureIceAttributeLength(
|
= ensureIceAttributeLength(
|
||||||
new BigInteger(24, random).toString(32),
|
new BigInteger(24, random).toString(32)
|
||||||
|
+ BigInteger.valueOf(
|
||||||
|
System.currentTimeMillis()).toString(32),
|
||||||
/* min */ 4, /* max */ 256);
|
/* min */ 4, /* max */ 256);
|
||||||
password
|
password
|
||||||
= ensureIceAttributeLength(
|
= ensureIceAttributeLength(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user