diff options
author | lassulus <lassulus@lassul.us> | 2018-12-03 07:45:20 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2018-12-03 07:45:20 +0100 |
commit | 82988de84c177c247ebbe80940c4d50b9f073b4e (patch) | |
tree | 88c0e8efb636f697319be0803a1e9d68181ce34c /lib | |
parent | c84b3c35f9f248fcf3081fa7eb0cee706fd8ebeb (diff) |
lib: genid is genid_unit32
Diffstat (limited to 'lib')
-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 4cb0332ca..348d47e85 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 |