3 ms·
Ok, couple questions. Entropy in what context? Just as a source of randomness? Which isn't what entropy really is right? Either way it seems unlikely to be ver
by DubiousPusher 10y ago
Ok, couple questions. Entropy in what context? Just as a source of randomness? Which isn't what entropy really is right?
Either way it seems unlikely to be very random. In my experience 0 is by far the most common value in unitialized memory, to the point of making many uninitialized memory bugs difficult to notice or even later reproduce.
- minipci1321 10y ago> In my experience 0 is by far the most common value in unitialized memory, In BSS, yes (IMO, BSS cannot be really considered as uninitialized, but you didn't give precisions). On the stack... I don't remember offhand whether the thread's stack is initially mapped in using zeropage which is then replaced by a real page on a first write. Even so, the first write would be saving the return address, so occurring pretty quickly. In any case, code moving up and down along the stack (calling into a chain of embedded routine inside a loop) will mostly spot its own garbage, hardly entropic.