Skip to content

Commit

Permalink
Merge pull request #256 from Quantum-0/main
Browse files Browse the repository at this point in the history
  • Loading branch information
NetanelBasal authored May 4, 2022
2 parents 5c14e9b + bb60075 commit 86a0950
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/falso/src/lib/hexa-decimal.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import { fake, FakeOptions } from './core/core';
import { randBoolean } from './boolean';

const digits = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
const letters = ['A', 'B', 'C', 'D', 'E', 'F'];
import { randNumber } from './number';

function generator() {
return '' + (randBoolean() ? fake(digits) : fake(letters));
return randNumber({min:0, max:15}).toString(16);
}

/**
Expand Down

0 comments on commit 86a0950

Please sign in to comment.