Giter VIP home page Giter VIP logo

Comments (6)

 avatar commented on July 21, 2024

@yudai-nkt Thanks a lot for reporting this bug!

I tried to implement a workaround which

  • uses the \randomseed you suggested for lualatex
  • uses a fixed seed for xelatex (and added a warning about this to the documentation).

from tikzducks.

 avatar commented on July 21, 2024

Now using \pgfmathsetseed{\time} for xelatex
Updates only once per minute, but generally works

from tikzducks.

yudai-nkt avatar yudai-nkt commented on July 21, 2024

Thank you for the quick fix! In addition to 7d836bb, something like

\RequirePackage{ifluatex}
\RequirePackage{ifxetex}

\ifluatex
  \let\pdfrandomseed\randomseed
\fi

\ifxetex
  \pgfmathsetseed{\time}
\else
  \pgfmathsetseed{\number\pdfrandomseed}
\fi

will utilize e-(u)pTeX's \pdfrandomseed, which can be a better seed (you aren't making an encryption, but it's better indeed), for (u)pLaTeX, which are Japanese variants of LaTeX. I'll be glad if you support the use of \pdfrandomseed in (u)pLaTeX as well although the number of users are considerably smaller than that of other engines.

My follow-up isn't a bug report but just a proposal of enhancement, so I never mean to rush you. Thanks again.

from tikzducks.

 avatar commented on July 21, 2024

@yudai-nkt Thanks a lot for your comment! I'll happily integrate your code suggestion into the package, no matter how big or small the number of users might be. If such a small change helps someone it is worth doing it (especially as I cannot see any real drawbacks of the new code). It works just fine from what I can tell!

I had already submitted the bug fix 7d836bb to CTAN in order to make the package usable again as soon as possible, so I will include ef333d1 only in the next version of the package.

Please report again, if you happen to notice any other problems between the tikzducks package and (u)pLaTeX (I have to admit, these are engines I don't use regularly -- in fact today was probably the first time I did :)

from tikzducks.

yudai-nkt avatar yudai-nkt commented on July 21, 2024

no matter how big or small the number of users might be. If such a small change helps someone it is worth doing it

Much appreciated for the kind words. Also looking forward to the next release! ✨🦆

from tikzducks.

samcarter avatar samcarter commented on July 21, 2024

@yudai-nkt Please excuse me for pinging you about this old thread, but I just made some changes about the random seed because as of 2019 xelatex now also supports the \randomseed primitive.

da3228e

Would you be able to test with (u)pLaTeX? I would be very grateful to hear your feedback! Thanks in advance!

from tikzducks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.