D24420: Compile error on conversion of std::time_t to long int

Yuri Chornoivan noreply at phabricator.kde.org
Sat Oct 5 10:25:17 BST 2019


yurchor added a comment.


  +1
  
  Works fine in Linux.

INLINE COMMENTS

> kgrgame.cpp:119
> +    const auto tse = std::chrono::system_clock::now().time_since_epoch();
> +    const long int sead = std::chrono::duration_cast<std::chrono::seconds>(tse).count();
> +    randomGen = new KRandomSequence (sead);

May it be the typo ("sead" -> "seed")?

REPOSITORY
  R396 KGoldrunner

REVISION DETAIL
  https://phabricator.kde.org/D24420

To: twighk, #kde_games
Cc: yurchor, kde-games-devel, krippendorf, hoetzel, hechenlan, bencreasy, vonreth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-games-devel/attachments/20191005/7069a19f/attachment.html>


More information about the kde-games-devel mailing list