[Issue] http://suprem.sec.samsung.net/jira/browse/TWF-1521
[Problem] bp_create_unique_id sometimes returned negative
integer because int value overflowed and became negative
[Solution] added mask for generating high number to prevent it from
becoming too large
[Verify] Run browser, run command
"dlogutil TAB_ADAPTOR BROWSER_PROVIDER" in shell
check if there is any DISK_BUSY message while adding tabs,
you should add at least 30 tabs.
Change-Id: I1c224a45932517763bfead627e7cd12ae06b94eb
Signed-off-by: Maciej Skrzypkowski <m.skrzypkows@samsung.com>
for (c = 0; c < cipher - 3; c++)
disit_unit = disit_unit * 10;
uniquetime = tval.tv_sec + ((tval.tv_usec << 2) * 100) +
- ((tval.tv_usec >> (cipher - 1)) * disit_unit) +
+ (((tval.tv_usec >> (cipher - 1)) * disit_unit) & 0x0fff) +
((tval.tv_usec + (tval.tv_usec % 10)) & 0x0fff);
} while (last_uniquetime == uniquetime);
last_uniquetime = uniquetime;