message: Refactor urlSeed
diff: -setup.urlSeed = function (seed) {
  - if (location.hash.length > 16) {
  - // console.log('Creating a new seed...')
  - seed = setup.urlData.adjectives.random() + setup.urlData.adjectives.random() + setup.urlData.animals.random()
  - seed = location.hash
  - } else if (location.hash.length <= 16) {
  - console.error(`Seed not long enough! Appending some filler to ${location.hash}...`)
  - seed += setup.urlData.adjectives.random() + setup.urlData.adjectives.random() + setup.urlData.animals.random()
  - } else {
  - console.log('Creating a seed...')
  - seed = setup.urlData.adjectives.random() + setup.urlData.adjectives.random() + setup.urlData.animals.random()
  - }
  +
  +setup.urlSeed = () => {
  + const seed = getValidSeed(location.hash.replace('#', ''))
  console.log(`Setting the location hash to ${seed}`)
  State.metadata.set('seed', seed)
  location.hash = seed
  - console.log(`Spinning up PRNG`)
  - State.prng.init(location.hash)
  + console.log('Spinning up PRNG')
  + State.prng.init(seed)
  }
  -$(document).one(':enginerestart', function (ev) {
  +$(document).one(':enginerestart', () => {
  console.log('Creating a new seed...')
  - location.hash = setup.urlData.adjectives.random() + setup.urlData.adjectives.random() + setup.urlData.animals.random()
  - console.log(`Restarting the engine...`)
  + location.hash = createSeed()
  + console.log('Restarting the engine...')
  })
  +
  +/**
  + * Validates and adjust a seed.
  + * @param {string} seed - Seed to validate/adjust.
  + * @returns {string} A valid seed.
  + */
  +function getValidSeed (seed) {
  + if (seed.length <= 0) {
  + console.log('Creating a seed...')
  + return createSeed()
  + }
  +
  + if (seed.length <= 16) {
  + console.warn(`Seed not long enough! Appending some filler to ${seed}...`)
  + return seed + createSeed()
  + }
  +
  + return seed
  +}
  +
  +/**
  + * Creates a new seed.
  + * @returns {string}
  + */
  +function createSeed () {
  + const { adjectives, animals } = setup.urlData
  + return adjectives.random() + adjectives.random() + animals.random()
  +}
  