source

image_random

20200720

True random numbers from a digital camera

20200720

Image_Random

True random numbers from a digital camera

This works under Linux with the GNAT compiler; modification for other platforms or compilers is left as an exercise for the desperate

Ideally, the camera should have its lens cap on, or have a similar dark covering, so the image is of the camera sensor noise

However, another randomly changing scene, such as a lava lamp or aquarium, may also work

This is slow and only produces 64 random bytes; if you need more, it is probably best to use these bytes to seed a high-quality pseudo-random number generator, such as the Threefry generator