src/base.lisp @ 7c7fc72df64c

Add missing dep
author Steve Losh <steve@stevelosh.com>
date Mon, 05 Mar 2018 14:32:24 -0500
parents 308e324d06da
children 630bc79afdfd
(in-package :flax.base)

(defun rand (bound)
  (pcg:pcg-random t bound))

(defmacro with-seed (seed &body body)
  `(let ((pcg::*global-generator* (pcg:make-pcg :seed ,seed))) ,@body))