Skip to content

Instantly share code, notes, and snippets.

@morrislaptop
Created January 18, 2016 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morrislaptop/a28fb1db7079fc4d300b to your computer and use it in GitHub Desktop.
Save morrislaptop/a28fb1db7079fc4d300b to your computer and use it in GitHub Desktop.
var frozen = 153665219; // Grab this value from a previous build
var seed = 1 ? frozen : (new Date).getTime() % 1000000000; // change 1 to 0 to switch between random or frozen
console.log("This seed is " + seed);
faker.seed(seed);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment