Skip to content

Commit

Permalink
Fix randomizer
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergiy Korzh committed Oct 22, 2023
1 parent 38aa0b2 commit 5cad4c7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions easydata.js/packs/core/src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,8 @@ export namespace utils {
//adding 2 random symbols
var randValue = strf.repeatString(' ', 2);

const maxSymbolIndex = symbols.length - 1;
randValue = replaceAtString(randValue, 0, symbols[getRandomInt(0, maxSymbolIndex)]);
randValue = replaceAtString(randValue, 1, symbols[getRandomInt(0, maxSymbolIndex)]);
randValue = replaceAtString(randValue, 0, symbols[getRandomInt(0, symbols.length)]);
randValue = replaceAtString(randValue, 1, symbols[getRandomInt(0, symbols.length)]);

//generating main ID part (64-base representation of the current value of the time ticks)
let ticksNum64 = intToNum36(getNowTicks() - magicTicks);
Expand Down

0 comments on commit 5cad4c7

Please sign in to comment.