MCPcopy
hub / github.com/yume-chan/ya-webadb / random

Method random

libraries/scrcpy/src/2_0/impl/init.ts:8–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6 static readonly NONE = /* #__PURE__ */ new InstanceId(-1);
7
8 static random(): InstanceId {
9 // A random 31-bit unsigned integer
10 return new InstanceId((Math.random() * 0x80000000) | 0);
11 }
12
13 value: number;
14

Callers 4

benchmark.jsFile · 0.80
pushAndInstallStreamMethod · 0.80
randomUint8ArrayFunction · 0.80
addReverseTunnelMethod · 0.80

Calls

no outgoing calls

Tested by 1

randomUint8ArrayFunction · 0.64