user19024399
user19024399

Reputation:

True random number generator in python or javascript

I am trying to implement a simple pseudo random generator used in cryptography called LFSR (linear feedback shift register).

I have checked a few JS and Python websites for a way to generate a True Random Number but all I find is pseudo random number generator.

Is it possible to get a TRN from these coding languages ?

Just some pointers would be fine, I am not originally a coder so got a bit confused by this.

Upvotes: 0

Views: 744

Answers (2)

Quentin Portet
Quentin Portet

Reputation: 1

On your own, achieving true randomness is very difficult, but some APIs that do this exist.

random.org does it, for example.

Upvotes: 0

Pajunen
Pajunen

Reputation: 116

True randomness comes from stuff like detecting radioactive decay events. So no, you cannot achieve true randomness with standard hardware.

Upvotes: 1

Related Questions