MCPcopy
hub / github.com/SPlayer-Dev/SPlayer / getRandomDeviceId

Function getRandomDeviceId

electron/server/unblock/bodian.ts:11–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9 * @returns 随机设备 ID
10 */
11const getRandomDeviceId = () => {
12 const min = 0;
13 const max = 100000000000;
14 const randomNum = Math.floor(Math.random() * (max - min + 1)) + min;
15 return randomNum.toString();
16};
17
18/** 随机设备 ID */
19const deviceId = getRandomDeviceId();

Callers 1

bodian.tsFile · 0.85

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected