MCPcopy Create free account
hub / github.com/CatMuse/HiNote / generateCommentId

Method generateCommentId

src/utils/IdGenerator.ts:25–29  ·  view source on GitHub ↗

* 生成批注ID * @returns 唯一的批注ID

()

Source from the content-addressed store, hash-verified

23 * @returns 唯一的批注ID
24 */
25 static generateCommentId(): string {
26 const timestamp = Date.now();
27 const random = Math.random().toString(36).slice(2, 11);
28 return `comment-${timestamp}-${random}`;
29 }
30
31 /**
32 * 生成闪卡ID

Callers 2

addCommentMethod · 0.80
saveAnswerFromEditorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected