• 4 Posts
  • 424 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 would not want multiple cells for reasons of ergonomics and convenience.

    I probably don’t need 100W for most field soldering. 60 is plenty, and temperature-controlled soldering irons usually don’t need to pull high current continuously. It would need 60W for maybe 10 seconds when powered on, and when heating something large. The rest of the time, it takes relatively little power to keep the tip hot.

    What I’m describing is, of course not the right tool for production soldering. It’s for field work.


  • Assuming the M12 CP1.5 battery pack, it’s probably three 18650s. Specifically, it’s probably three LG HB series 18650s, which handle high burst loads well, but hold only 1500 mAh. A single Sony VTC6 holds 2/3 the energy of one of those packs. Wait… why am I speculating? Youtubers tear down power tool battery packs on video all the time, and someone did that one. They’re Samsung 15Ms, which are a little worse than HBs.

    Anyway, short runtimes are fine for most field repairs, which is the whole point of something entirely self-contained. Spare batteries can extend it indefinitely, but a battery soldering iron is probably not what I’d pick for extended soldering sessions.