summaryrefslogtreecommitdiffstats
path: root/toolkit/components/normandy/lib/NormandyUtils.sys.mjs
blob: 7db12c59b7324fe84868b6fb8bf8b6e492a967d5 (plain)
1
2
3
4
5
6
7
8
9
10
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

export var NormandyUtils = {
  generateUuid() {
    // Generate a random UUID, convert it to a string, and slice the braces off the ends.
    return Services.uuid.generateUUID().toString().slice(1, -1);
  },
};