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:
boris 2014-08-29 08:27:30 +00:00
parent c0e7cd56d6
commit cf6d78208f

View File

@ -273,7 +273,9 @@ public class Agent
ufrag
= ensureIceAttributeLength(
new BigInteger(24, random).toString(32),
new BigInteger(24, random).toString(32)
+ BigInteger.valueOf(
System.currentTimeMillis()).toString(32),
/* min */ 4, /* max */ 256);
password
= ensureIceAttributeLength(