Image_random

Website:

https://github.com/bracke/Image_Random

Author:
  • Jeff Carter
Maintainer:
  • Bent Bracke <bent@bracke.dk>
License:

BSD-3-Clause

Version:

20200720.0.0

Alire CI:

Dependencies:
  • image/svg+xml gnat <13.0 | >=13.3
Dependents:

No dependents.

Badge:

True random numbers from a digital camera

#random #numbers #camera

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