Skip to content

Consider fixing time for each solution run #735

Open

Description

@JRaspass

Using Linux's time namespaces we could set the clock to a fixed time (say 13:33:37 😉) at the start of a solution run.

I'm not sure if this is a neat easter egg or an actual fix for non-determenistic solutions using now()? It might also affect languages which seed their hash algos with time. Thoughts?

Either way we need to wait a bit as the feature is in Linux 5.13+ and the server currently runs Debian Stable aka 5.10.

See https://man7.org/linux/man-pages/man7/time_namespaces.7.html

Activity

  1. JRaspass commented on Mar 13, 2023

    @JRaspass
    CollaboratorAuthor

    Our kernel is now new enough but I think we're now blocked on golang/go#49779

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions