Add a small string optimization test with a buffer of 126. Cache size() outside the loop for RandomString. Modify Num2String so that npos is properly taken into account. Add Tristate2String. Modify seedForThisIteration so that its value is count + rand() instead of just rand(): using just rand meant that a lot of the initial seeds repeated because the pseudo-randomness of rand isn't good. Adding count should somewhat reduce the repetitions. I'd consider using another random number generator, rand() is slow and has a bad distribution.
Add a small string optimization test with a buffer of 126.
Cache size() outside the loop for RandomString.
Modify Num2String so that npos is properly taken into account.
Add Tristate2String.
Modify seedForThisIteration so that its value is count + rand() instead of just rand(): using just rand meant that a lot of the initial seeds repeated because the pseudo-randomness of rand isn't good. Adding count should somewhat reduce the repetitions.
I'd consider using another random number generator, rand() is slow and has a bad distribution.


git-svn-id: e2e1a767b54e5f731ad8ac18fa5089ee37d5625a@999 7ec92016-0320-0410-acc4-a06ded1c099a

claudiordgz/Loki,claudiordgz/Loki,claudiordgz/Loki