# Bootstrapping random numbers are not fixed

**URL:** <https://openfhe.discourse.group/t/bootstrapping-random-numbers-are-not-fixed/770>\
**Category:** Library Questions\
**Created:** [August 22, 2023, 5:42pm UTC](https://openfhe.discourse.group/t/bootstrapping-random-numbers-are-not-fixed/770 "2023-08-22T17:42:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wangantian](https://avatars.discourse-cdn.com/v4/letter/w/c89c15/32.png) [@wangantian](https://openfhe.discourse.group/u/wangantian)\
**Post date:** [August 22, 2023, 5:42pm UTC](https://openfhe.discourse.group/t/bootstrapping-random-numbers-are-not-fixed/770/1 "2023-08-22T17:42:50Z")

</div>

Hi,  
I’m currently running the simplebootstrapping example in CKKS.  
However, the random errors generated in CKKS are not fixed even I make the one in .h file to fixed

> <https://github.com/openfheorg/openfhe-development/blob/802b2265dd0033be4ec96aeffb9a6559523170b1/src/core/include/math/distributiongenerator.h#L51>

#define FIXED\_SEED  
It once worked when running bfv code, but I have no idea why it do not work with the CKKS part.  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![ypolyakov](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/ypolyakov/32/47_2.png) [@ypolyakov](https://openfhe.discourse.group/u/ypolyakov)\
**Post date:** [August 22, 2023, 9:11pm UTC](https://openfhe.discourse.group/t/bootstrapping-random-numbers-are-not-fixed/770/2 "2023-08-22T21:11:33Z")

</div>

Hi @wangantian ,

Please also make sure that you use the single-threaded setup. There are two options for this:

1. Compile with OpenMP support (ON by default) and then set the OMP\_NUM\_THREADS to 1, i.e.,

```auto
export OMP_NUM_THREADS=1

```

1. Compile w/o OpenMP support: set WITH\_OPENMP to OFF when running cmake.
