Skip to content

Commit

Permalink
Update json.js
Browse files Browse the repository at this point in the history
  • Loading branch information
abumq committed Sep 7, 2023
1 parent 8fbbe04 commit 1ab7a5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/json.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const json = (val, opts = {}) => {
/**
* Flags the field to be spreaded in resulting JSON.
*/
const spread = (uid = '') => SPREAD_KEY_NAME + uid + Math.random();
const spread = (uid = '', rnd = Math.random) => SPREAD_KEY_NAME + uid + rnd();

module.exports.json = json;
module.exports.spread = spread;

0 comments on commit 1ab7a5e

Please sign in to comment.