<commit_before><commit_msg>random byte<commit_after>define(['src/random/randByte'], function (randByte) {

    describe('random/randByte()', function(){

        beforeEach(function(){
            this.addMatchers({
                toDiffAny : function(vals){
                    var n = arguments.length;
                    while(n--){
                        if(this.actual !== arguments[n]) return true;
                    }
                    return false;
                }
            });
        });

        it('returns a random byte at each call', function(){
            var q = randByte();
            var w = randByte();
            var e = randByte();
            var r = randByte();
            var t = randByte();
            var y = randByte();
            var a = randByte();
            var s = randByte();
            var d = randByte();
            var f = randByte();
            expect( q ).not.toBeUndefined();
            expect( parseInt(q,16) ).toBeGreaterThan(0);
            expect( parseInt(q,16) ).toBeLessThan(256);
            expect( q ).not.toEqual( NaN );
            expect( q ).toDiffAny(w, e, r, t, y, a, s, d, f);
        });

    });
});
{'fraction_non_alphanumeric': 0.14067796610169492, 'fraction_numerical': 0.006779661016949152, 'mean_word_length': 1.3479125248508945, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, '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': '7131036', 'n_tokens_mistral': 322, 'n_tokens_neox': 308, 'n_words': 82}