MCPcopy
hub / github.com/microsoft/vscode-languageserver-node / _oneOf

Method _oneOf

client/src/utils/uuid.ts:41–43  ·  view source on GitHub ↗
(array: string[])

Source from the content-addressed store, hash-verified

39 private static _timeHighBits = ['8', '9', 'a', 'b'];
40
41 private static _oneOf(array: string[]): string {
42 return array[Math.floor(array.length * Math.random())];
43 }
44
45 private static _randomHex(): string {
46 return V4UUID._oneOf(V4UUID._chars);

Callers 2

_randomHexMethod · 0.45
constructorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected