Skip to content

Commit

Permalink
improve commnet
Browse files Browse the repository at this point in the history
  • Loading branch information
sonytooo committed Feb 19, 2025
1 parent 8dc02b5 commit f3a980b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/libs/entropyGenerator/entropyGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ export class EntropyGenerator {
}

#collectTimeEntropy(): void {
// TODO: add a polyfill for the mobile app
// TODO: steps to add support for the mobile app:
// 1. install the polyfill: `yarn add react-native-performance`
// 2. add it globally in a top-level file:
// if (typeof performance === "undefined") {
// global.performance = { now }
// }
const now = performance.now()

if (!now) return
Expand Down

0 comments on commit f3a980b

Please sign in to comment.