Commit History

Author SHA1 Message Date
  Roberto Ierusalimschy 347d6961ac Define LUA_MAXUNSIGNED as a preprocessor constant 6 years ago
  Roberto Ierusalimschy 279c3a6961 A few changes in tests about number of bits in integers 6 years ago
  Roberto Ierusalimschy 9eca305e75 'math.randomseed()' sets a somewhat random seed 6 years ago
  Roberto Ierusalimschy 51316f9df7 'math.rand()' uses higher bits to produce float value 6 years ago
  Roberto Ierusalimschy f99509581e Removed extra information from RCS keyword strings 7 years ago
  Roberto Ierusalimschy aedcfb9414 type 'Rand64' may not be long long, so it should not use 'LL' in its 7 years ago
  Roberto Ierusalimschy de53c2ec7e using some weak "randomness" (time and memory address) to initialize 7 years ago
  Roberto Ierusalimschy 80bd4a8940 correction on xoshiro256** algorithm 7 years ago
  Roberto Ierusalimschy 3e7415e846 reorganization of '#if's for sellecting a type for 'Rand64' + 7 years ago
  Roberto Ierusalimschy 762baf0548 detail (trim constants are unsigned) 7 years ago
  Roberto Ierusalimschy b8a04658b2 PRNG changed from 'xoroshiro128+' to 'xoshiro256**' + "I' renamed 'Rand64' 7 years ago
  Roberto Ierusalimschy b44787652b using 'xoroshiro128+' for PRNG 7 years ago
  Roberto Ierusalimschy bdd10a08b1 in 'random', uses high-order bits instead of low-order 7 years ago
  Roberto Ierusalimschy c5e3b2f814 in random/'project', remove the special case for "small" intervals; 7 years ago
  Roberto Ierusalimschy 89da4168df avoid functions named 'pack' 7 years ago
  Roberto Ierusalimschy 6b01b6cf6a 'lu_int32' may not be 'int' 7 years ago
  Roberto Ierusalimschy e3388ebfad more explicit casts when converting an integer to a random float 7 years ago
  Roberto Ierusalimschy dbec41f34c random floats of different sizes get exactly needed number of random bits 7 years ago
  Roberto Ierusalimschy 0b3db69e41 slight simplification in 'xorshift128plus' 7 years ago
  Roberto Ierusalimschy 80ae1c1c16 fairer projection of random integers into an integer interval 7 years ago
  Roberto Ierusalimschy 66b7b075a6 'math.random' using the xorshift128+ algorithm 7 years ago
  Roberto Ierusalimschy 2a235312f0 detail (removing spaces at end of lines) 8 years ago
  Roberto Ierusalimschy 9903dd52a3 Using LUAI_UAC* types more consistently on vararg calls 8 years ago
  Roberto Ierusalimschy dc4232379d detail (ensure subtraction is done unsigned) 9 years ago
  Roberto Ierusalimschy be63d995c1 tiny bug: 'randomseed' was calling 'rand' (instead of 'l_rand') 10 years ago
  Roberto Ierusalimschy 7d930ec694 use 'log2' when available 10 years ago
  Roberto Ierusalimschy 1a7868c1d5 bug: 'random' limit is 2^31-1, not RAND_MAX 10 years ago
  Roberto Ierusalimschy 17ca3b1763 cleaner test for overflow for range of 'math.random' 10 years ago
  Roberto Ierusalimschy 28fdbcf393 added include for 'lprefix.h', for stuff that must be added before 10 years ago
  Roberto Ierusalimschy 463edee2fd 'lua_numtointeger' -> 'lua_numbertointeger' 10 years ago