# error\[E0432\]: unresolved import \`rand\`

**URL:** <https://forum.dfinity.org/t/error-e0432-unresolved-import-rand/12190>\
**Category:** Language Support\
**Created:** [April 16, 2022, 6:36am UTC](https://forum.dfinity.org/t/error-e0432-unresolved-import-rand/12190 "2022-04-16T06:36:51Z")\
**Posts on this page:** 1\
**Showing post:** 25

<div class="post-metadata">

**Author:** ![GLdev](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@GLdev](https://forum.dfinity.org/u/GLdev)\
**Post date:** [February 3, 2023, 9:01am UTC](https://forum.dfinity.org/t/error-e0432-unresolved-import-rand/12190/25 "2023-02-03T09:01:30Z")

</div>

Have you tried this way: [Issue about generate random string Panicked at 'could not initialize thread\_rng: getrandom: this target is not supported' - #8 by AdamS](https://forum.dfinity.org/t/issue-about-generate-random-string-panicked-at-could-not-initialize-thread-rng-getrandom-this-target-is-not-supported/15198/8) ?

---

_[View the full topic](https://forum.dfinity.org/t/error-e0432-unresolved-import-rand/12190)._
