Software engineering, Rust, Zig, embedded

  • 0 Posts
  • 21 Comments
Joined 4 months ago
cake
Cake day: July 1st, 2024

help-circle









  • From my opinion it is more computer science sorcery than math sorcery.

    For true random generation you usually need some specialized hardware for it, that uses sone natural source of random. One could use the decay of a radioactive material as such a source or the noise one can get from audio input. Unfortunately, I don’t know what actual hardware uses.

    For pseudo random generation, you usually use a seed (ideally a true random value or something with a high entropy) which you feed into an algorithm like Linear Congruental Generator (LCG) or Mersenne Twister (there are lots of algorithms).

    One further important note: Tge use case forvwhich you need random numbers is important. A video game could accept a random number generator with “lower” quality while a cryptographic algorithm always needs a cryptographic secure random number generator (don’t forget: “don’t roll your own crypto”).

    Finally there are quasi randim number generators, however this name is very misleading. The mathematical correct term is low discrepancy sequence. There are not random at all but can be used and have useful properties in some settungs where pseudo random number generators can be used. Never in a cryptographic algorithm, though.











  • This is good news indeed.

    But I see the same problems as with email, chat etc. You can selfhost almost everything. But too few people are doing it. You can use Linux as your Desktop and at least 4% are doing it. Still too few if you ask me.

    And if most of the people keep using the commercial and closed source options over the self hosted one, then I see this concentration of power. Additionally, there is the risk of regulatory capture, where big companies may try to at least hinder self hosting due to (what I consider) made up risks.

    However, its good that there are currently such good open source option. I hope they will grow and become the defacto standard.