urbit-ob

JavaScript utilities for phonemic base wrangling.
Log | Files | Refs | README

commit 8e3b012cededcde7e552939ff327a2f864798181
parent 59e03d2a070d9d02df1c5e0471d02234c2cd53fa
Author: Jared Tobin <jared@jtobin.io>
Date:   Mon, 18 Mar 2019 10:32:05 +1300

Bundle raku w/the PRF that uses it.

Diffstat:
Msrc/internal/ob.js | 21++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)

diff --git a/src/internal/ob.js b/src/internal/ob.js @@ -14,17 +14,17 @@ const ux_ffff_ffff_0000_0000 = new BN('ffffffff00000000', 'hex') const u_65535 = new BN('65535') const u_65536 = new BN('65536') -// old PRF seeds -const raku = [ - 0xb76d5eed, - 0xee281300, - 0x85bcae01, - 0x4b387af7, -] - // a PRF for j in { 0, .., 3 } -const F = (j, arg) => - muk(raku[j], 2, arg) +const F = (j, arg) => { + const raku = [ + 0xb76d5eed, + 0xee281300, + 0x85bcae01, + 0x4b387af7, + ] + + return muk(raku[j], 2, arg) +} /** * Conceal structure v3. @@ -189,7 +189,6 @@ const fen = (r, a, b, f, m) => { module.exports = { F, - raku, fe, Fe,