Skip to content

Commit

Permalink
Fixed #14 - using \pgfmathsetseed{\time} for xelatex
Browse files Browse the repository at this point in the history
  • Loading branch information
samcarter committed Nov 23, 2017
1 parent b191c49 commit 7d836bb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions tikzducks-doc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -576,8 +576,6 @@ \section{Random ducks}
\end{tikzpicture}
\end{tcblisting}
\textcolor{red!60!black}{Note for \lstinline|XeLaTeX|:} Due to technical limitations, the random seed is fixed for xelatex, this means that \lstinline|\randuck| will still print another duck on each call, however the sequence is always the same.
%\clearpage
\section{Further customisation}
Expand Down
2 changes: 1 addition & 1 deletion tikzducks.sty
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@
% Random ducks
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\pgfmathsetseed{42}
\pgfmathsetseed{\time}
\ifpdf % filters pdflatex and lualatex
\ifluatex
\pgfmathsetseed{\number\randomseed}
Expand Down

0 comments on commit 7d836bb

Please sign in to comment.