# Initial seed too large?

**URL:** <https://discuss.pytorch.org/t/initial-seed-too-large/28832>\
**Category:** Uncategorized\
**Created:** [November 5, 2018, 3:38pm UTC](https://discuss.pytorch.org/t/initial-seed-too-large/28832 "2018-11-05T15:38:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![tom](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/tom/32/3162_2.png) [@tom](https://discuss.pytorch.org/u/tom)\
**Post date:** [November 5, 2018, 5:56pm UTC](https://discuss.pytorch.org/t/initial-seed-too-large/28832/2 "2018-11-05T17:56:41Z")

</div>

> [@mfajcik](#):
>
> 13248873089935215612

The seed is a signed 64 bit integer on the C++ side, so the maximum is `(1<<63)-1`.  
You could use “13248873089935215612 & ((1\<\<63)-1)” if you wanted to.

I [tend to be cautious](https://discuss.pytorch.org/t/random-function-calculation/21061/2) about trying to be clever with random seeds, I’m not certain that your seed is any better than, say, `42`.

Best regards

Thomas

---

_[View the full topic](https://discuss.pytorch.org/t/initial-seed-too-large/28832)._
