/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @format
 * 
 * @emails oncall+draft_js
 */

var generateRandomKey_1;
var hasRequiredGenerateRandomKey;

function requireGenerateRandomKey () {
	if (hasRequiredGenerateRandomKey) return generateRandomKey_1;
	hasRequiredGenerateRandomKey = 1;

	var seenKeys = {};
	var MULTIPLIER = Math.pow(2, 24);

	function generateRandomKey() {
	  var key;

	  while (key === undefined || seenKeys.hasOwnProperty(key) || !isNaN(+key)) {
	    key = Math.floor(Math.random() * MULTIPLIER).toString(32);
	  }

	  seenKeys[key] = true;
	  return key;
	}

	generateRandomKey_1 = generateRandomKey;
	return generateRandomKey_1;
}

export { requireGenerateRandomKey as __require };
//# sourceMappingURL=generateRandomKey.js.map
