# Sendmany cannot send - error getrandom

**URL:** <https://forum.zcashcommunity.com/t/sendmany-cannot-send-error-getrandom/36023>\
**Category:** Technical Support\
**Created:** [February 18, 2020, 8:47pm UTC](https://forum.zcashcommunity.com/t/sendmany-cannot-send-error-getrandom/36023 "2020-02-18T20:47:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertmm](https://avatars.discourse-cdn.com/v4/letter/r/eb9ed0/32.png) [@robertmm](https://forum.zcashcommunity.com/u/robertmm)\
**Post date:** [February 18, 2020, 8:47pm UTC](https://forum.zcashcommunity.com/t/sendmany-cannot-send-error-getrandom/36023/1 "2020-02-18T20:47:55Z")

</div>

Hi  
I have node and I want to send money:

/home/user1/bitcoinz/src/bitcoinz-cli -datadir=/home/user1/bitcoinz/data z\_sendmany “t1XeYrDvBcdeKd8tXN9EmUBAnYoRxbZEno9” ‘[{“address”:“t1QGYNeFvRAvqQk3XGMimDDfzu1b2qeSgwB”,“amount”:1}]’

and I get error:  
error code: -1  
error message:  
getrandom

How to check more details what is wrong?

---

<div class="post-metadata">

**Author:** ![str4d](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/str4d/32/64_2.png) [@str4d](https://forum.zcashcommunity.com/u/str4d)\
**Post date:** [February 18, 2020, 8:54pm UTC](https://forum.zcashcommunity.com/t/sendmany-cannot-send-error-getrandom/36023/2 "2020-02-18T20:54:29Z")

</div>

No idea, sorry. That is a BitcoinZ node, not a Zcash node. I’ve never seen that error reported for Zcash nodes, and I have no insight into their codebase (including how far removed it is from Zcash now); you should ask on the BitcoinZ forums or issue tracker.

---

<div class="post-metadata">

**Author:** ![robertmm](https://avatars.discourse-cdn.com/v4/letter/r/eb9ed0/32.png) [@robertmm](https://forum.zcashcommunity.com/u/robertmm)\
**Post date:** [February 29, 2020, 8:40am UTC](https://forum.zcashcommunity.com/t/sendmany-cannot-send-error-getrandom/36023/3 "2020-02-29T08:40:35Z")

</div>

Problem was with entropy on the server. BitcoinZ is based on Zcash .  
On my machine with Ubuntu entropy was around 150-300. BitcoinZ node need at least 1000 to correctly work.

---

<div class="post-metadata">

**Author:** ![daira](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/daira/32/43253_2.png) [@daira](https://forum.zcashcommunity.com/u/daira)\
**Post date:** [March 7, 2020, 9:54pm UTC](https://forum.zcashcommunity.com/t/sendmany-cannot-send-error-getrandom/36023/4 "2020-03-07T21:54:15Z")

</div>

The BitcoinZ devs have obviously replaced the RNG with one that can fail at the application level. We wouldn’t recommend that. It’s the operating system’s responsibility to provide a cryptographically secure source of randomness that can’t fail (short of the whole system being very broken). Zcash uses libsodium’s RNG API, which in the case of Linux is a wrapper around the getrandom syscall.

---

<div class="post-metadata">

**Author:** ![robertmm](https://avatars.discourse-cdn.com/v4/letter/r/eb9ed0/32.png) [@robertmm](https://forum.zcashcommunity.com/u/robertmm)\
**Post date:** [March 8, 2020, 8:26am UTC](https://forum.zcashcommunity.com/t/sendmany-cannot-send-error-getrandom/36023/5 "2020-03-08T08:26:11Z")

</div>

Thanks for explanation.
