1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

[EC-598] chore: add small todo comment

This commit is contained in:
Andreas Coroiu
2023-02-10 15:46:26 +01:00
parent eb59f180d0
commit 5f776c7176

View File

@@ -319,6 +319,7 @@ async function generateAuthData(params: AuthDataParams) {
authData.push(flags);
// add 4 bytes of counter - we use time in epoch seconds as monotonic counter
// TODO: Consider changing this to a cryptographically safe random number
const now = new Date().getTime() / 1000;
authData.push(
((now & 0xff000000) >> 24) & 0xff,