summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2018-12-03 07:45:20 +0100
committerlassulus <lassulus@lassul.us>2018-12-03 07:45:20 +0100
commit006364274f516eb41def5f711c23b19e0b0a41f8 (patch)
treef5ab7810a090d8ac24092d9579eafbb4392f99f2 /lib
parentc473636b778cc22afa09ae93cd4e69fdf8d9878f (diff)
lib: genid is genid_unit32
Diffstat (limited to 'lib')
-rw-r--r--lib/default.nix5
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