src/base.lisp @ ba8de6322022

Refactor drawing array handling, add lparallel
author Steve Losh <steve@stevelosh.com>
date Tue, 06 Feb 2018 18:05:18 -0500
parents 55c0df99bd7a
children d74fa73a0e76
(in-package :flax.base)

(setf lparallel:*kernel* (lparallel:make-kernel 6))

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

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