diff --git a/frontend/public/js/bing/chat/config.js b/frontend/public/js/bing/chat/config.js index a20aea284f..81b19fc963 100644 --- a/frontend/public/js/bing/chat/config.js +++ b/frontend/public/js/bing/chat/config.js @@ -119,7 +119,7 @@ _w['_sydConvConfig'] = { sydTestCacheMsg: '', sydTestMockShareId: '', sydTuringSuggestionsMocked: false, - traceId: 'x5v7bk6bmhyx5jpiyaec6ef9ez9t4tse', + traceId: randomLowercaseString(32), extraSappOptions: '', extraEdgeOptions: 'eredirecturl', extraBceOptions: '', diff --git a/frontend/public/js/bing/chat/global.js b/frontend/public/js/bing/chat/global.js index 6fe4390a0c..cd8812b0e8 100644 --- a/frontend/public/js/bing/chat/global.js +++ b/frontend/public/js/bing/chat/global.js @@ -91,4 +91,13 @@ function UserStoreGet (name) { return userStore[name] } return null; +} + +function randomLowercaseString(e) { + e = e || 32; + var t = "abcdefhijkmnprstwxyz2345678", + a = t.length, + n = ""; + for (i = 0; i < e; i++) n += t.charAt(Math.floor(Math.random() * a)); + return n } \ No newline at end of file