diff options
author | tv <tv@krebsco.de> | 2018-12-07 13:20:49 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2018-12-07 13:20:49 +0100 |
commit | 438089810a9fbc9b4fe06bfd36813e686021a213 (patch) | |
tree | 4e618194c6cdf1220f19cae2990f609d41766eeb /lib/default.nix | |
parent | 8a425161078af36d4bbc3af7a866af05cdfdcb29 (diff) | |
parent | 66bcaa6e1bcaa34cc29776fb41f343e696e09fd6 (diff) |
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'lib/default.nix')
-rw-r--r-- | lib/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/default.nix b/lib/default.nix index 4cb0332..348d47e 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -13,8 +13,9 @@ let ne = x: y: x != y; mod = x: y: x - y * (x / y); - genid = import ./genid.nix { inherit lib; }; - genid_uint31 = x: ((lib.genid x) + 16777216) / 2; + genid = lib.genid_uint32; # TODO remove + genid_uint31 = x: ((lib.genid_uint32 x) + 16777216) / 2; + genid_uint32 = import ./genid.nix { inherit lib; }; lpad = n: c: s: if lib.stringLength s < n |