src/base.lisp @ eefee58dd493

Remove lparallel
author Steve Losh <steve@stevelosh.com>
date Tue, 06 Feb 2018 19:06:57 -0500
parents d74fa73a0e76
children 308e324d06da
(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))