An unofficial, read-only Hacker News reader.

Active intrusion campaign against Check Point security management servers (opens external site)

299 points by louiereederson 5 days ago | www.greynoise.io | 156 comments on HN

View full thread · View on Hacker News

Comment thread (2)

  1. This is what OpenBSD did many years ago with rand(3). Quoting the manpage:

    Standards insist that this interface return deterministic results. Unsafe usage is very common, so OpenBSD changed the subsystem to return non-deterministic results by default.

    In OpenBSD the seed variable is ignored, and strong random number results will be provided from arc4random(3).

    ...

    If the standardized behavior is required srand_deterministic() can be substituted for srand(), then subsequent rand() calls will return results using the deterministic algorithm.

    https://man.openbsd.org/rand

    So if you need pretend random numbers, you can still get them. But the preferred choice is to use the arc4random family of functions.

    Replies (1)
    1. This is the kind of solution that should really be the default approach to this kind of thing. Break the behavior but give an easy way to get to the old functionality. This forces developers to make a conscious choice to get the old behavior. Maximum flexibility with minimum collateral damage.