src/base.lisp @ f0fe6cc0a43f

GC *before* trying to allocate the next image array
author Steve Losh <steve@stevelosh.com>
date Mon, 05 Feb 2018 23:54:28 -0500
parents 55c0df99bd7a
children ba8de6322022
(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))