<commit_before>/*jslint bitwise: true */

goog.provide("tixi.uuid");

(function () {
    // From http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript
    function _p8(s) {
        var p = (Math.random().toString(16) + "000000000").substr(2, 8);
        return s ? "-" + p.substr(0, 4) + "-" + p.substr(4, 4) : p;
    }

    tixi.uuid.generate = function () {
        return _p8() + _p8(true) + _p8(true) + _p8();
    }
}());<commit_msg>Simplify UUID generator<commit_after>/*jslint bitwise: true */

goog.provide("tixi.uuid");

(function () {
    tixi.uuid.generate = function () {
        return Math.random().toString(16).substr(2, 8) + Math.random().toString(16).substr(2, 8);
    }
}());
{'fraction_non_alphanumeric': 0.2125, 'fraction_numerical': 0.05, 'mean_word_length': 3.050561797752809, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5254404', 'n_tokens_mistral': 297, 'n_tokens_neox': 270, 'n_words': 42}