bugfix: need to cast result of rand to avoid overflow
bugfix: need to cast result of rand to avoid overflow

realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core