• 4 Posts
  • 286 Comments
Joined 1 year ago
cake
Cake day: June 11th, 2023

help-circle
  • PRNGs aren’t random at all; they produce a deterministic sequence of numbers based on a seed value and an internal counter. Two PRNGs using the same algorithm and seed will produce the same sequence of numbers. The sequence is difficult to predict without knowing the algorithm and seed, and the values are close to evenly-distributed, which is enough like random numbers for a lot of use cases.

    Here’s an example in Ruby:

    seed = Random.new_seed()
    => 142757148148443078663499575299582907518
    prng_1 = Random.new(seed=seed)
    prng_1.rand()
    => 0.6702742156250219
    prng_2 = Random.new(seed=seed)
    prng_2.rand()
    => 0.6702742156250219
    prng_1.rand()
    => 0.9667236181962573
    prng_2.rand()
    => 0.9667236181962573
    

    If you run this yourself using 142757148148443078663499575299582907518 as the seed, your first two pseudorandom numbers will also be 0.6702742156250219 and 0.9667236181962573, assuming your version of Ruby hasn’t changed its PRNG.


  • There was a recent related discussion on Hacker News and the top comment discusses why this sort of solution is not likely to be the best fit for smaller organizations. In short, doing it well requires time and effort from someone technically sophisticated, who must do more than the bare minimum for good results, as you just learned.

    Even then, it’s likely to be less reliable than solutions hosted by big corporations and when there’s a problem, it’s your problem. I don’t want to discourage you, but understand what you’re committing to and make sure you have adequate buy-in in your organization.







  • I’m relatively content with my Pixel 4A running LineageOS (with root), but that’s an experience that’s really only suited to very technical users, in large part because some apps actively resist running in an environment the device owner actually controls.

    My complaint is with the smartphone ecosystem as a whole: it’s designed to empower the OS vendor and app developers over users. The entire tech world (outside Microsoft and maybe some corporate IT types) saw Microsoft Palladium as a nightmare scenario a couple decades ago. Now we’ve let Apple and Google do the same thing with barely a grumble out of the mainstream tech press.




  • So many people asking me to have my wife do something different on her end. Beloved, she is on iPhone because she doesn’t want to do anything “weird.”

    Assuming using a third-party messaging app is “weird”, then she can’t send you video with acceptable quality. That’s how it is.

    She can’t fix that. You can’t fix that. None of the readers here can fix that unless they work at Apple. This may improve in the future when Apple adopts RCS, but there’s a lot that real-world implementations of RCS do that isn’t in the standard, so the full details of interoperability are uncertain until we see it in the wild.

    Now, why can’t I get iMessage on my android phone?

    Because Apple doesn’t want you to. Apple wants situations like this one to pressure people to buy iPhones because that’s apparently easier for some people than agreeing on a messaging app.








  • There are some loud voices in the fediverse who don’t want it to be very welcoming. Here are a couple examples:

    Threads defederation - what could onboard people to the fediverse faster than a giant platform run by Facebook joining? Yes, I hate Facebook as much as everyone else here, but they’re making an offramp for their users and half the fediverse wants to close that off?

    Overbearing enforcement of norms - yes, it’s good if people put alt text on their images and content warnings on stuff lots of people find upsetting. It’s harmful to hassle people about it until they leave.

    I think people who a small network with strong social norms are better off on servers that are selective about what they federate with to ensure stricter adherence to the preferences of their users. One of the great things about federated systems is that users can pick a place that’s run in a way that works for them.