A light leak and a film burn are two different accidents, so the engine builds both from how light behaves.
The usual trick is to stamp a photo of a leak on top. It repeats, never quite fits, and the illusion breaks the second you see it twice. There are no pictures inside scannd.: every leak and burn is generated from how light behaves on film, at whatever size the photo is.
Re-roll the seed and you get a genuinely new accident, not the next frame of a loop.
A light leak is stray light getting in through a gap in the camera. It is a coloured veil more than a white sheet: it enters from an edge and fades inward, the scene stays visible through it, and the highlights take on its colour.
A film burn is heat or strong light eating into the emulsion. It has a white-hot core at the edge and a flame front of red and orange. Its colours follow the order film takes energy in: red, then orange, then yellow, then white, and white only at the hottest point.
The seed picks the character of the accident. A leak can be a soft veil from the edge, a haze across the front of the lens, a broad sweep from a corner, round flare blobs, or a beam through a gap in the frame. Most leaks are warm, from red to peach. A few are cool or pale. A burn's rim varies from yellow-orange to red.
Shuffle gives you a new one. Position chooses the edge it comes from, and choosing a side keeps the same character. Whether it's a leak or a burn is always your choice: a seed never turns one into the other.
Turning a leak up makes it more present across the frame. Turning a burn up pulls it further in from its edge: flame tongues appear as it grows, and past a point the flames hold their shape while the white behind them keeps advancing.
Either way it only ever adds light, toward its colour or toward white. It never darkens the photo.
The same seed and settings give the same accident in the preview and in the exported file, at any resolution. On a black and white photo the leak or burn turns neutral, a grey fog or scorch.
With the Frame on, the film's black edge fogs too, the pattern carrying on from the photo onto the rebate, and a burn that goes white burns the edge out with it. The holder and the white margin stay clean: they were never film.