   ([^ByteBuffer buf]
    (random-to-byte-buffer! buf (.remaining buf)))
   ([^ByteBuffer buf n]
-   (.randombytes sodium buf (long n))
+   (.randombytes b/sodium buf (long n))
    buf))
 
 (defn randombytes


  If n is not given, populates the entire array."
  ([^bytes arr]
   (random-to-byte-array! arr (buflen arr)))
  ([^bytes arr n]
   (.randombytes sodium arr (long n))
   arr))

(defn random-to-byte-buffer!

(ns caesium.randombytes
  "Utilities for producing cryptographically random bytes, suitable
  for use as a key or other input entropy."
  (:require [caesium.binding :as b]
            [caesium.byte-bufs :as bb])
  (:import (java.nio ByteBuffer)))

(defn random-to-byte-array!
