News for hackers. Stuff that matters.
Re:On programming without malloc by TheLoneWolfling on Wednesday December 04, 2013 @02:18PM (#6849359)
Minor qualm: is rand defined?
Re:On programming without malloc by apgwoz on Wednesday December 04, 2013 @02:35PM (#6849501)
Well, rand can be defined as a Linear Congruential Generator (https://en.wikipedia.org/wiki/Linear_congruential_generator), or some other well known algorithm. LCG's don't require anything that the machine doesn't already do (mod, addition and multiplication)
Re:On programming without malloc by rca on Wednesday December 04, 2013 @02:49PM (#6849626)
You could use rdrand if you're on (a recent enough) x86. You just lose some portability. Probably not a major issue at this point.