fixed C89 problem with TLSRandom coe